tweaked spec for OBS

This commit is contained in:
Sam Hewitt 2016-05-18 12:43:26 -04:00
parent 45cde6ac19
commit 8819b6cb4e
2 changed files with 27 additions and 24 deletions

View File

@ -25,6 +25,6 @@ This procedure requires ```autotools``` on your system.
Alternatively you may install Paper with the provided installation script: Alternatively you may install Paper with the provided installation script:
./install.sh ./install-gtk-theme.sh
----------- -----------

View File

@ -1,6 +1,7 @@
#
# Spec file for package paper-gtk-theme # Spec file for package paper-gtk-theme
# #
# Copyright (c) 2016 Sam Hewitt <sam@snwh.org> # Copyright (c) 2016 Sam Hewitt
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -12,35 +13,37 @@
# published by the Open Source Initiative. # published by the Open Source Initiative.
# #
Name: paper-gtk-theme
# GitHub Stuff Version: 2.0
%global commit0 40-CHARACTER-HASH-VALUE Release: 0
License: GPL-3.0+
name: paper-gtk-theme Summary: Paper GTK theme
version: 2.0 Url: https://snwh.org/paper
release: 0 Group: System/GUI/Other
Source: %{name}-%{version}.tar.xz
Summary: Paper GTK Theme BuildRequires: automake
Group: System/GUI/Other BuildRoot: %{_tmppath}/%{name}-%{version}-build
License: GPL-3.0+ BuildArch: noarch
Url: http://snwh.org/paper/ Requires: gtk2-engines
Source0: https://github.com/snwh/%{name}/archive/%{commit0}.tar.gz
Requires: gtk2-engines
BuildArch: noarch
%description %description
Paper GTK Theme Paper is a modern desktop theme suite. Its design is mostly flat with a minimal use of shadows for depth.
%prep %prep
%setup -qn %{name}-%{commit0} %setup -q
find -L . -type l -print -delete
chmod a-x AUTHORS README.md
%build %build
./autogen.sh
make %{?_smp_mflags}
%install %install
install -dpm 0755 $RPM_BUILD_ROOT%{_datadir}/themes/ make install DESTDIR=%{buildroot} %{?_smp_mflags}
cp -a Paper/ $RPM_BUILD_ROOT%{_datadir}/themes/ rm -f %{buildroot}%{_datadir}/theme/Paper/AUTHORS
%fdupes %{buildroot}%{_datadir}/theme/Paper
%files %files
%doc AUTHORS LICENSE %defattr(-,root,root)
%{_datadir}/themes/Paper/ %doc AUTHORS LICENSE_* README.md
%{_datadir}/theme/Paper