Browse Source

update:zint

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@3809 ec354946-7b23-47d6-9f5a-488ba84defc7
owa 13 years ago
parent
commit
1f6829a988
1 changed files with 33 additions and 12 deletions
  1. 33 12
      z/zint/zint-vl.spec

+ 33 - 12
z/zint/zint-vl.spec

@@ -1,16 +1,22 @@
 Summary: A barcode generator and library
 Summary(ja): Zintバーコード作成プログラム
 Name: zint
-Version: 2.4.0
+Version: 2.4.2
 Release: 1%{?_dist_release}
 License: GPLv3+
 URL: http://www.zint.org.uk
-Source: http://downloads.sourceforge.net/project/%{name}/%{name}/%{version}/%{name}-%{version}.src.tar.gz
+Source: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
+Patch0: zint-2.4.0-qr-kanji.patch
+Patch1: %{name}-rpath.patch
 Group: Applications/Engineering
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
 BuildRequires: cmake
 BuildRequires: libpng-devel
 BuildRequires: zlib-devel
+BuildRequires: qt4-devel
+BuildRequires: desktop-file-utils
+Distribution: Vine Linux
+Vendor: Project Vine
 Packager: owa
 
 %description
@@ -65,8 +71,11 @@ C library and header files needed to develop applications using %{name}-qt.
 
 %prep
 %setup -q
+%patch0 -p 1 -b .qr-kanji
+%patch1 -p 1 -b .rpath
 
-# remove BSD-licensed file required for Windows only (just to ensure that this package is plain GPLv3+)
+# remove BSD-licensed file required for Windows only
+# (just to ensure that this package is plain GPLv3+)
 rm -f backend/ms_stdint.h
 # remove bundled getopt sources (we use the corresponding Fedora package instead)
 rm -f frontend/getopt*.*
@@ -76,7 +85,14 @@ rm -f frontend/getopt*.*
 %cmake CMakeLists.txt
 make VERBOSE=1 %{?_smp_mflags}
 
-cat <<EOF >zint-qt.desktop
+
+%install
+rm -rf $RPM_BUILD_ROOT
+make install DESTDIR=$RPM_BUILD_ROOT
+
+rm -rf $RPM_BUILD_ROOT/%{_datadir}/cmake
+
+cat <<EOF >%{name}-qt.desktop
 [Desktop Entry]
 Encoding=UTF-8
 Name=Zint Barcode Studio
@@ -91,12 +107,7 @@ Type=Application
 Categories=Utility;
 EOF
 
-
-%install
-rm -rf $RPM_BUILD_ROOT
-make install DESTDIR=$RPM_BUILD_ROOT
-
-rm -rf $RPM_BUILD_ROOT/%{_datadir}/cmake
+install -D -p -m 644 %{name}.png %{buildroot}/usr/share/pixmaps/%{name}.png
 install -D -p -m 644 %{name}-qt.desktop %{buildroot}%{_datadir}/applications/%{name}-qt.desktop
 desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}-qt.desktop
 
@@ -106,8 +117,8 @@ rm -rf $RPM_BUILD_ROOT
 
 %post -p /sbin/ldconfig
 %postun -p /sbin/ldconfig
-%post -n %{name}-qt -p /sbin/ldconfig
-%postun -n %{name}-qt -p /sbin/ldconfig
+%post qt -p /sbin/ldconfig
+%postun qt -p /sbin/ldconfig
 %files
 %defattr(-,root,root,-)
 %doc COPYING readme
@@ -124,6 +135,7 @@ rm -rf $RPM_BUILD_ROOT
 %{_bindir}/%{name}-qt
 %{_libdir}/libQZint.so.*
 %{_datadir}/applications/%{name}-qt.desktop
+%{_datadir}/pixmaps/%{name}.png
 
 %files qt-devel
 %defattr(-,root,root,-)
@@ -132,6 +144,15 @@ rm -rf $RPM_BUILD_ROOT
 
 
 %changelog
+* Sat May 07 2011 Shu KONNO <owa@bg.wakwak.com> 2.4.2-1
+- updated zint to 2.4.2
+- added %{name}-rpath.patch
+- added BR: qt4-devel, desktop-file-utils
+
+* Sat Nov 06 2010 Shu KONNO <owa@bg.wakwak.com> 2.4.0-2
+- added zint-2.4.0-qr-kanji.patch (BTS:1062)
+- install %{name}.png
+
 * Thu Oct 28 2010 Shu KONNO <owa@bg.wakwak.com> 2.4.0-1
 - initial build for Vine