diff options
author | Kandrashin Denis <mail@lintest.ru> | 2012-07-01 22:45:28 +0400 |
---|---|---|
committer | Kandrashin Denis <mail@lintest.ru> | 2012-07-01 22:45:28 +0400 |
commit | 1df848666d712f059800de5fd49b7c7764468d57 (patch) | |
tree | 1138c404f251c5b040e93c41cafd0581b882a889 | |
parent | 69296f687a8b16205e281d9a19472bdf38c59b7f (diff) |
Update SPEC files
-rw-r--r-- | rpmbuild/myrulib-cr.spec | 46 | ||||
-rw-r--r-- | rpmbuild/myrulib.spec | 31 |
2 files changed, 20 insertions, 57 deletions
diff --git a/rpmbuild/myrulib-cr.spec b/rpmbuild/myrulib-cr.spec index 62a0e182..adba6108 100644 --- a/rpmbuild/myrulib-cr.spec +++ b/rpmbuild/myrulib-cr.spec @@ -1,7 +1,7 @@ # -# spec file for package myrulib-cr (Version 0.28) +# spec file for package myrulib-cr # -# Copyright (c) 2009-2011 Denis Kandrashin, Kyrill Detinov +# Copyright (c) 2009, 2010, 2011, 2012 Denis Kandrashin, Kyrill Detinov # This file and all modifications and additions to the pristine # package are under the same license as the package itself. # @@ -22,41 +22,24 @@ BuildRequires: gcc-c++ BuildRequires: libicu-devel BuildRequires: libxml2-devel BuildRequires: libjpeg-devel -Conflicts: myrulib BuildRoot: %{_tmppath}/%{name}-%{version}-build +Conflicts: myrulib %if 0%{?suse_version} BuildRequires: update-desktop-files -%if 0%{?suse_version} >= 1140 -BuildRequires: sqlite3-devel BuildRequires: wxWidgets-devel -%else -BuildRequires: wxGTK-devel >= 2.8.10 -%endif +%define _use_internal_dependency_generator 0 +%define __find_requires %wx_requires %endif %if 0%{?mandriva_version} +BuildRequires: libbzip2-devel BuildRequires: libwxgtku2.8-devel >= 2.8.10 %endif %if 0%{?fedora_version} BuildRequires: desktop-file-utils BuildRequires: wxGTK-devel >= 2.8.10 -%if 0%{?fedora_version} >= 15 -BuildRequires: libsqlite3x-devel -%endif -%endif - -%if 0%{?fedora_version} -BuildRequires: bzip2-devel -%endif - -%if 0%{?mandriva_version} -BuildRequires: libbzip2-devel -%endif - -%if 0%{?suse_version} -BuildRequires: libbz2-devel %endif %description @@ -76,14 +59,14 @@ Authors: %build %configure \ - --with-icu \ - --with-reader \ - --without-strip + --with-icu \ + --with-reader \ + --without-strip -%if 0%{?fedora_version} >= 13 || 0%{?suse_version} >= 1210 -%__make LDFLAGS="-Wl,--add-needed" %{?_smp_mflags} +%if 0%{?fedora_version} || 0%{?suse_version} +make LDFLAGS="-Wl,--add-needed" %{?_smp_mflags} %else -%__make %{?_smp_mflags} +make %{?_smp_mflags} %endif %install @@ -91,7 +74,7 @@ Authors: %{?buildroot:%__rm -rf "%{buildroot}"} %endif -%__make DESTDIR=%{buildroot} install +make DESTDIR=%{buildroot} install %find_lang myrulib %if 0%{?suse_version} @@ -120,9 +103,6 @@ desktop-file-validate %{buildroot}%{_datadir}/applications/myrulib.desktop %clean_menus %endif -%clean -%{?buildroot:%__rm -rf "%{buildroot}"} - %files -f myrulib.lang %defattr(-,root,root,-) %doc AUTHORS ChangeLog LICENSE README diff --git a/rpmbuild/myrulib.spec b/rpmbuild/myrulib.spec index da8049e1..833ed54b 100644 --- a/rpmbuild/myrulib.spec +++ b/rpmbuild/myrulib.spec @@ -1,7 +1,7 @@ # -# spec file for package myrulib (Version 0.27) +# spec file for package myrulib # -# Copyright (c) 2009-2011 Denis Kandrashin, Kyrill Detinov +# Copyright (c) 2009, 2010, 2011, 2012 Denis Kandrashin, Kyrill Detinov # This file and all modifications and additions to the pristine # package are under the same license as the package itself. # @@ -25,36 +25,19 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build %if 0%{?suse_version} BuildRequires: update-desktop-files -%if 0%{?suse_version} >= 1140 -BuildRequires: sqlite3-devel BuildRequires: wxWidgets-devel -%else -BuildRequires: wxGTK-devel >= 2.8.10 -%endif +%define _use_internal_dependency_generator 0 +%define __find_requires %wx_requires %endif %if 0%{?mandriva_version} BuildRequires: libwxgtku2.8-devel >= 2.8.10 +BuildRequires: libbzip2-devel %endif %if 0%{?fedora_version} BuildRequires: wxGTK-devel >= 2.8.10 BuildRequires: desktop-file-utils -%if 0%{?fedora_version} >= 15 -BuildRequires: libsqlite3x-devel -%endif -%endif - -%if 0%{?fedora_version} -BuildRequires: bzip2-devel -%endif - -%if 0%{?mandriva_version} -BuildRequires: libbzip2-devel -%endif - -%if 0%{?suse_version} -BuildRequires: libbz2-devel %endif %description @@ -75,7 +58,7 @@ Authors: --with-icu \ --without-strip -%if 0%{?fedora_version} >= 13 +%if 0%{?fedora_version} make LDFLAGS="-Wl,--add-needed" %{?_smp_mflags} %else make %{?_smp_mflags} @@ -97,7 +80,7 @@ make DESTDIR=%{buildroot} install desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop %endif -%if 0%{?suse_version} >= 1140 +%if 0%{?suse_version} %post %desktop_database_post %icon_theme_cache_post |