|
@@ -1,21 +1,23 @@
|
|
|
-Name: smillaenlarger
|
|
|
-Version: 0.9.0
|
|
|
-Release: 2%{?_dist_release}
|
|
|
-Summary: small graphical tool to resize based on Qt
|
|
|
-Summary(ja): Qt ベースのリサイズのための小さなグラフィカルツール
|
|
|
+%define SE_Src SmillaEnlarger_0.9.0_source/SmillaEnlargerSrc/
|
|
|
|
|
|
-Group: Applications/Graphics
|
|
|
-License: GPLv3
|
|
|
-URL: http://sourceforge.net/projects/imageenlarger/
|
|
|
-Source0: SmillaEnlarger_%{version}_source.zip
|
|
|
-Source1: %{name}.desktop
|
|
|
-Patch0: apply_environment.patch
|
|
|
+Name: smillaenlarger
|
|
|
+Version: 0.9.0
|
|
|
+Release: 3%{?_dist_release}
|
|
|
+Summary: small graphical tool to resize based on Qt
|
|
|
+Summary(ja): Qt ベースのリサイズのための小さなグラフィカルツール
|
|
|
|
|
|
-BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
+Group: Applications/Graphics
|
|
|
+License: GPLv3
|
|
|
+URL: http://sourceforge.net/projects/imageenlarger/
|
|
|
+Source0: SmillaEnlarger_%{version}_source.zip
|
|
|
+Source1: %{name}.desktop
|
|
|
+Patch0: apply_environment.patch
|
|
|
|
|
|
-BuildRequires: unzip
|
|
|
-BuildRequires: qt4-devel
|
|
|
-BuildRequires: qt4-designer
|
|
|
+BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
+
|
|
|
+BuildRequires: unzip
|
|
|
+BuildRequires: qt4-devel
|
|
|
+BuildRequires: qt4-designer
|
|
|
|
|
|
Requires: qt4%{?_isa} >= %{_qt4_version}
|
|
|
|
|
@@ -29,26 +31,27 @@ SmillaEnlarger は、リサイズのための (Qtベースの) 小さなグラ
|
|
|
|
|
|
%prep
|
|
|
%setup -q -c -T
|
|
|
-
|
|
|
%{_bindir}/unzip -oq %{SOURCE0}
|
|
|
%patch0 -p1
|
|
|
-rm -rf __MACOSX/
|
|
|
-mv SmillaEnlarger_%{version}_source/SmillaEnlargerSrc/* .
|
|
|
|
|
|
%build
|
|
|
-%{_libdir}/qt4/bin/qmake
|
|
|
+pushd %{SE_Src}
|
|
|
+%{_libdir}/qt4/bin/qmake ImageEnlarger.pro
|
|
|
make %{?_smp_mflags}
|
|
|
+popd
|
|
|
|
|
|
%install
|
|
|
+pushd %{SE_Src}
|
|
|
%__install -dm 755 %{buildroot}%{_bindir}
|
|
|
%__install -m 755 SmillaEnlarger %{buildroot}%{_bindir}
|
|
|
%__install -dm 755 %{buildroot}%{_datadir}/pixmaps/
|
|
|
%__install -m 644 smilla.png %{buildroot}%{_datadir}/pixmaps/smilla.png
|
|
|
%__install -dm 755 %{buildroot}%{_datadir}/applications/
|
|
|
%__install -m 644 %{SOURCE1} %{buildroot}%{_datadir}/applications/%{name}.desktop
|
|
|
+popd
|
|
|
|
|
|
%clean
|
|
|
-rm -rf $RPM_BUILD_ROOT
|
|
|
+rm -rf %{buildroot}
|
|
|
|
|
|
%post
|
|
|
update-desktop-database %{_datadir}/applications>& /dev/null ||:
|
|
@@ -58,12 +61,15 @@ update-desktop-database %{_datadir}/applications>& /dev/null ||:
|
|
|
|
|
|
%files
|
|
|
%defattr(-,root,root,-)
|
|
|
-%doc docs/*
|
|
|
+%doc %{SE_Src}docs/*
|
|
|
%{_bindir}/SmillaEnlarger
|
|
|
%{_datadir}/applications/*.desktop
|
|
|
%{_datadir}/pixmaps/*
|
|
|
|
|
|
%changelog
|
|
|
+* Sun Sep 30 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.9.0-3
|
|
|
+- improved spec
|
|
|
+
|
|
|
* Sat Feb 19 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.9.0-2
|
|
|
- included document files
|
|
|
|