From 14b0d86741941c6b805c979ac0da4d62af5f0624 Mon Sep 17 00:00:00 2001 From: B Stack Date: Tue, 14 Jul 2020 21:42:28 -0400 Subject: WIP: first attempt at rpm spec Builds all rpms but I have not tested any of them or listed contents. --- chicago95.spec | 206 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 206 insertions(+) create mode 100644 chicago95.spec (limited to 'chicago95.spec') diff --git a/chicago95.spec b/chicago95.spec new file mode 100644 index 0000000..5268127 --- /dev/null +++ b/chicago95.spec @@ -0,0 +1,206 @@ +%define debug_package %{nil} +%define committish master +Name: chicago95-theme +Version: 2.0.1 +Release: 1%{?dist} +Summary: XFCE Windows 95 Total Conversion + +Group: User Interface/Desktops +License: GPLv3.0+/MIT +URL: https://github.com/grassmunk/Chicago95 +Source0: https://github.com/grassmunk/Chicago95/archive/%{committish}.tar.gz + +BuildArch: noarch +Packager: B Stack +BuildRequires: txt2man +#Provides: mimehandler(application/x-freefilesync-batch) +Requires: %{name}-backgrounds +Requires: %{name}-cursors +Requires: %{name}-doc +Requires: %{name}-fonts +Requires: %{name}-gtk +Requires: %{name}-icons +Requires: %{name}-login-sound +Requires: %{name}-plus +Requires: %{name}-plymouth +Requires: %{name}-sounds + +%package backgrounds +Summary: Backgrounds for Chicago95 +%description backgrounds +Backgrounds that resemble some of the classic Windows 95 +wallpapers. This is part of the chicago95 theme suite. + +%package cursors +Summary: Mouse cursor themes for Chicago95 +%description cursors +Mouse cursors for the Chicago95 theme suite. + +%package doc +Summary: Documentation for Chicago95 +%description doc +Documentation and readmes for the Chicago95 theme +suite, including ultimate ricing guides. + +%package fonts +Summary: Fonts for Chicago95 +%description fonts +Terminal fonts for the Chicago95 theme suite. +Overall system fonts are proprietary but described +in the documentation for the theme. + +%package gtk +Recommends: qt5-qtstyleplugins +Conflicts: %{name}-greeter < %{version} +Summary: GTK and WM themes for Chicago95 +%description gtk +Themes for GTK2, GTK3, Metacity, and more, for the +Chicago95 theme suite. + +%package icons +Summary: Icon themes for Chicago95 +%description icons +Icon themes for Chicago95 theme suite. + +%package plymouth +Requires: plymouth +Summary: Plymouth theme for Chicago95 +%description plymouth +Graphical theme for Plymouth bootloader, for the +Chicago95 theme suite. + +%package sounds +Summary: Sounds for Chicago95 +%description sounds +UI sounds for Chicago95 theme. + +%package login-sound +Requires: sox +Summary: Login sound for Chicago95 +%description login-sound +XDG autostart and sound file for Chicago95 theme suite. + +%package plus +Requires: inkscape +Requires: python3 +Requires: python3-fonttools +Requires: python3-numpy +Requires: python3-svgwrite +Summary: Windows Plus! Theme Conversion for XFCE/Chicago95 +%description plus +Translate Windows 95 Plus! themes to Gtk-compatible themes. + +%description +Assets to allow customization of Xfce to look as +close to Microsoft Windows 95 as possible. This +metapackage depends on most of the other chicago95 +packages. + +%prep +%setup -n Chicago95-%{committish} + +#%%patch0 -p1 + +%build +%make_build + +%install +export use_underscores=YES +%make_install + +%clean +%{__rm} -rf %{buildroot} || : + +%post +touch --no-create %{_datadir}/icons/hicolor &>/dev/null || : + +%preun +# is it a final removal? +#if test "$1" = "0" ; +#then +#fi + +%postun +if test "$1" = "0" ; +then + touch --no-create %{_datadir}/icons/hicolor &>/dev/null +fi + +%posttrans plus +update-desktop-database 1>/dev/null 2>&1 & : +gtk-update-icon-cache %{_datadir}/icons/hicolor 1>/dev/null 2>&1 & : +update-mime-database -n ${_datadir}/mime 1>/dev/null 2>&1 & : + +%files + +%files backgrounds +%{_datadir}/backgrounds/Chicago95 + +%files cursors +%{_datadir}/icons/Chicago95_Cursor_Black/cursors +%{_datadir}/icons/Chicago95_Cursor_Black/index.theme +%{_datadir}/icons/Chicago95_Cursor_White/cursors +%{_datadir}/icons/Chicago95_Cursor_White/index.theme +%{_datadir}/icons/Chicago95_Emerald/cursors +%{_datadir}/icons/Chicago95_Emerald/index.theme +%{_datadir}/icons/Chicago95_Animated_Hourglass_Cursors/cursors +%{_datadir}/icons/Chicago95_Animated_Hourglass_Cursors/index.theme +%{_datadir}/icons/Chicago95_Standard_Cursors/cursors +%{_datadir}/icons/Chicago95_Standard_Cursors/index.theme +%{_datadir}/icons/Chicago95_Standard_Cursors_Black/cursors +%{_datadir}/icons/Chicago95_Standard_Cursors_Black/index.theme + +%files doc +%{_docdir}/chicago95 + +%files fonts +%{_fontbasedir}/truetype + +%files gtk +%{_datadir}/xfce4/terminal/colorschemes/Chicago95.theme +%{_datadir}/themes/Chicago95 +%{_datadir}/xfce4-panel-profiles/layouts/Chicago95* + +%files icons +%{_datadir}/icons/Chicago95 +%{_datadir}/icons/Chicago95-tux + +%files login-sound +%{_datadir}/sounds/Chicago95/startup.ogg +%{_sysconfdir}/xdg/autostart/chicago95-startup.desktop + +%files plus +%{_datadir}/icons/Chicago95_Cursor_Black/src +%{_datadir}/icons/Chicago95_Cursor_White/src +%{_datadir}/icons/Chicago95_Emerald/src +%{_datadir}/icons/Chicago95_Animated_Hourglass_Cursors/build +%{_datadir}/icons/Chicago95_Standard_Cursors/build +%{_datadir}/icons/Chicago95_Standard_Cursors_Black/build +%{_bindir}/ChicagoPlus +%{_bindir}/PlusGUI +%{_libexecdir}/chicago95-theme-plus +%{_datadir}/applications/PlusGUI.desktop +%{_datadir}/chicago95-theme-plus +%{_datadir}/mime/packages/*.xml +%{_mandir}/man1/ChicagoPlus.1.gz +%{_mandir}/man1/PlusGUI.1.gz + +%files plymouth +%{_datadir}/plymouth/themes + +%files sounds +%{_datadir}/sounds/Chicago95/stereo +%{_datadir}/sounds/Chicago95/index.theme +#%license %attr(444, -, -) License.txt +#%doc %attr(444, -, -) Changelog.txt +#%{_bindir}/%{pkgname} +#%{_bindir}/%{prog2name} +#%{_datadir}/applications/*.desktop +#%{_datadir}/icons/hicolor/*x*/*/*.png +#%{_datadir}/mime/packages/* +#%{_datadir}/%{name} +#%%ghost %%config %%attr(666, -, -) %%{_datadir}/%%{name}/GlobalSettings.xml + +%changelog +* Tue Jul 14 2020 B Stack - 2.0.1-1 +- Initial rpm release -- cgit From f569ca35db5b808f73a6d4eda4a2d525a3319064 Mon Sep 17 00:00:00 2001 From: B Stack Date: Wed, 15 Jul 2020 08:23:41 -0400 Subject: rpm rc1 --- chicago95.spec | 38 ++++++++++++++++++++------------------ 1 file changed, 20 insertions(+), 18 deletions(-) (limited to 'chicago95.spec') diff --git a/chicago95.spec b/chicago95.spec index 5268127..45e56cb 100644 --- a/chicago95.spec +++ b/chicago95.spec @@ -1,3 +1,6 @@ +# Reference: +# https://src.fedoraproject.org/rpms/nagios-plugins/blob/master/f/nagios-plugins.spec +# debian/ for this package %define debug_package %{nil} %define committish master Name: chicago95-theme @@ -14,6 +17,15 @@ BuildArch: noarch Packager: B Stack BuildRequires: txt2man #Provides: mimehandler(application/x-freefilesync-batch) + +%description +Assets to allow customization of Xfce to look as +close to Microsoft Windows 95 as possible. This +metapackage depends on most of the other chicago95 +packages. + +%package all +Summary: Chicago95 theme - all components Requires: %{name}-backgrounds Requires: %{name}-cursors Requires: %{name}-doc @@ -24,6 +36,11 @@ Requires: %{name}-login-sound Requires: %{name}-plus Requires: %{name}-plymouth Requires: %{name}-sounds +%description all +Assets to allow customization of Xfce to look as +close to Microsoft Windows 95 as possible. This +metapackage depends on most of the other chicago95 +packages. %package backgrounds Summary: Backgrounds for Chicago95 @@ -90,12 +107,6 @@ Summary: Windows Plus! Theme Conversion for XFCE/Chicago95 %description plus Translate Windows 95 Plus! themes to Gtk-compatible themes. -%description -Assets to allow customization of Xfce to look as -close to Microsoft Windows 95 as possible. This -metapackage depends on most of the other chicago95 -packages. - %prep %setup -n Chicago95-%{committish} @@ -131,7 +142,7 @@ update-desktop-database 1>/dev/null 2>&1 & : gtk-update-icon-cache %{_datadir}/icons/hicolor 1>/dev/null 2>&1 & : update-mime-database -n ${_datadir}/mime 1>/dev/null 2>&1 & : -%files +%files all %files backgrounds %{_datadir}/backgrounds/Chicago95 @@ -154,7 +165,7 @@ update-mime-database -n ${_datadir}/mime 1>/dev/null 2>&1 & : %{_docdir}/chicago95 %files fonts -%{_fontbasedir}/truetype +%{_fontbasedir}/truetype/* %files gtk %{_datadir}/xfce4/terminal/colorschemes/Chicago95.theme @@ -186,20 +197,11 @@ update-mime-database -n ${_datadir}/mime 1>/dev/null 2>&1 & : %{_mandir}/man1/PlusGUI.1.gz %files plymouth -%{_datadir}/plymouth/themes +%{_datadir}/plymouth/themes/* %files sounds %{_datadir}/sounds/Chicago95/stereo %{_datadir}/sounds/Chicago95/index.theme -#%license %attr(444, -, -) License.txt -#%doc %attr(444, -, -) Changelog.txt -#%{_bindir}/%{pkgname} -#%{_bindir}/%{prog2name} -#%{_datadir}/applications/*.desktop -#%{_datadir}/icons/hicolor/*x*/*/*.png -#%{_datadir}/mime/packages/* -#%{_datadir}/%{name} -#%%ghost %%config %%attr(666, -, -) %%{_datadir}/%%{name}/GlobalSettings.xml %changelog * Tue Jul 14 2020 B Stack - 2.0.1-1 -- cgit From 29a65028407cf81fe4b100c986f0ab68b979da1f Mon Sep 17 00:00:00 2001 From: B Stack Date: Wed, 15 Jul 2020 08:29:43 -0400 Subject: WIP: add %obsbuild condition Adding an attribute to OBS project (https://en.opensuse.org/openSUSE:Build_Service_prjconf#Macros) and using it in the spec to change the tarball name means we can use the one downloaded tarball for the dpkg and rpm. So the theory goes. --- chicago95.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'chicago95.spec') diff --git a/chicago95.spec b/chicago95.spec index 45e56cb..f7ec125 100644 --- a/chicago95.spec +++ b/chicago95.spec @@ -3,6 +3,10 @@ # debian/ for this package %define debug_package %{nil} %define committish master +%define archivename %{committish}.tar.gz +%if 0%{?obsbuild} +%define archivename Chicago95.tar.gz +%endif Name: chicago95-theme Version: 2.0.1 Release: 1%{?dist} @@ -11,7 +15,7 @@ Summary: XFCE Windows 95 Total Conversion Group: User Interface/Desktops License: GPLv3.0+/MIT URL: https://github.com/grassmunk/Chicago95 -Source0: https://github.com/grassmunk/Chicago95/archive/%{committish}.tar.gz +Source0: https://github.com/grassmunk/Chicago95/archive/%{archivename} BuildArch: noarch Packager: B Stack -- cgit From 17d6558bc38d461733401f106a27a6b5aa9d83a2 Mon Sep 17 00:00:00 2001 From: B Stack Date: Wed, 15 Jul 2020 09:26:58 -0400 Subject: WIP: update tarball name in spec --- chicago95.spec | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'chicago95.spec') diff --git a/chicago95.spec b/chicago95.spec index f7ec125..f16d4a4 100644 --- a/chicago95.spec +++ b/chicago95.spec @@ -1,11 +1,13 @@ # Reference: # https://src.fedoraproject.org/rpms/nagios-plugins/blob/master/f/nagios-plugins.spec # debian/ for this package +# Documentation: +# This file is manually copied to the OBS project chicago95 due to difficulties with the _service operation. %define debug_package %{nil} %define committish master %define archivename %{committish}.tar.gz %if 0%{?obsbuild} -%define archivename Chicago95.tar.gz +%define archivename chicago95.orig.tar.gz %endif Name: chicago95-theme Version: 2.0.1 -- cgit From 0bc770774806a9d8883906ba2c8874131a0c8154 Mon Sep 17 00:00:00 2001 From: B Stack Date: Wed, 15 Jul 2020 12:12:09 -0400 Subject: adjust archive dir for obs --- chicago95.spec | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'chicago95.spec') diff --git a/chicago95.spec b/chicago95.spec index f16d4a4..b8fc5a7 100644 --- a/chicago95.spec +++ b/chicago95.spec @@ -6,8 +6,10 @@ %define debug_package %{nil} %define committish master %define archivename %{committish}.tar.gz +%define archivedir Chicago95-%{committish} %if 0%{?obsbuild} %define archivename chicago95.orig.tar.gz +%define archivedir chicago95.orig %endif Name: chicago95-theme Version: 2.0.1 @@ -114,7 +116,7 @@ Summary: Windows Plus! Theme Conversion for XFCE/Chicago95 Translate Windows 95 Plus! themes to Gtk-compatible themes. %prep -%setup -n Chicago95-%{committish} +%setup -n %{archivedir} #%%patch0 -p1 -- cgit From 3269b09c798e1db217748ddd89a0f2e2acfe8303 Mon Sep 17 00:00:00 2001 From: B Stack Date: Wed, 15 Jul 2020 20:44:34 -0400 Subject: add paths.patch to rpm --- chicago95.spec | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'chicago95.spec') diff --git a/chicago95.spec b/chicago95.spec index b8fc5a7..ccc8200 100644 --- a/chicago95.spec +++ b/chicago95.spec @@ -11,6 +11,11 @@ %define archivename chicago95.orig.tar.gz %define archivedir chicago95.orig %endif +# for OBS, Fedora 30, 31 +%if "0%{?_fontbasedir}" == "0" +%define _fontbasedir %{_datadir}/fonts +%endif + Name: chicago95-theme Version: 2.0.1 Release: 1%{?dist} @@ -20,11 +25,11 @@ Group: User Interface/Desktops License: GPLv3.0+/MIT URL: https://github.com/grassmunk/Chicago95 Source0: https://github.com/grassmunk/Chicago95/archive/%{archivename} +Patch0: paths.patch BuildArch: noarch Packager: B Stack BuildRequires: txt2man -#Provides: mimehandler(application/x-freefilesync-batch) %description Assets to allow customization of Xfce to look as @@ -118,7 +123,7 @@ Translate Windows 95 Plus! themes to Gtk-compatible themes. %prep %setup -n %{archivedir} -#%%patch0 -p1 +%patch0 -p1 %build %make_build -- cgit From 834bb31603af36d7931496692c2714451d835453 Mon Sep 17 00:00:00 2001 From: B Stack Date: Wed, 15 Jul 2020 21:22:45 -0400 Subject: make Recommends not present in el7 --- chicago95.spec | 2 ++ 1 file changed, 2 insertions(+) (limited to 'chicago95.spec') diff --git a/chicago95.spec b/chicago95.spec index ccc8200..50f288a 100644 --- a/chicago95.spec +++ b/chicago95.spec @@ -80,7 +80,9 @@ Overall system fonts are proprietary but described in the documentation for the theme. %package gtk +%if !0%{?el7} Recommends: qt5-qtstyleplugins +%endif Conflicts: %{name}-greeter < %{version} Summary: GTK and WM themes for Chicago95 %description gtk -- cgit