|
@@ -1,16 +1,22 @@
|
|
Summary: A barcode generator and library
|
|
Summary: A barcode generator and library
|
|
Summary(ja): Zintバーコード作成プログラム
|
|
Summary(ja): Zintバーコード作成プログラム
|
|
Name: zint
|
|
Name: zint
|
|
-Version: 2.4.0
|
|
|
|
|
|
+Version: 2.4.2
|
|
Release: 1%{?_dist_release}
|
|
Release: 1%{?_dist_release}
|
|
License: GPLv3+
|
|
License: GPLv3+
|
|
URL: http://www.zint.org.uk
|
|
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
|
|
Group: Applications/Engineering
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
|
BuildRequires: cmake
|
|
BuildRequires: cmake
|
|
BuildRequires: libpng-devel
|
|
BuildRequires: libpng-devel
|
|
BuildRequires: zlib-devel
|
|
BuildRequires: zlib-devel
|
|
|
|
+BuildRequires: qt4-devel
|
|
|
|
+BuildRequires: desktop-file-utils
|
|
|
|
+Distribution: Vine Linux
|
|
|
|
+Vendor: Project Vine
|
|
Packager: owa
|
|
Packager: owa
|
|
|
|
|
|
%description
|
|
%description
|
|
@@ -65,8 +71,11 @@ C library and header files needed to develop applications using %{name}-qt.
|
|
|
|
|
|
%prep
|
|
%prep
|
|
%setup -q
|
|
%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
|
|
rm -f backend/ms_stdint.h
|
|
# remove bundled getopt sources (we use the corresponding Fedora package instead)
|
|
# remove bundled getopt sources (we use the corresponding Fedora package instead)
|
|
rm -f frontend/getopt*.*
|
|
rm -f frontend/getopt*.*
|
|
@@ -76,7 +85,14 @@ rm -f frontend/getopt*.*
|
|
%cmake CMakeLists.txt
|
|
%cmake CMakeLists.txt
|
|
make VERBOSE=1 %{?_smp_mflags}
|
|
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]
|
|
[Desktop Entry]
|
|
Encoding=UTF-8
|
|
Encoding=UTF-8
|
|
Name=Zint Barcode Studio
|
|
Name=Zint Barcode Studio
|
|
@@ -91,12 +107,7 @@ Type=Application
|
|
Categories=Utility;
|
|
Categories=Utility;
|
|
EOF
|
|
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
|
|
install -D -p -m 644 %{name}-qt.desktop %{buildroot}%{_datadir}/applications/%{name}-qt.desktop
|
|
desktop-file-validate %{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
|
|
%post -p /sbin/ldconfig
|
|
%postun -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
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%defattr(-,root,root,-)
|
|
%doc COPYING readme
|
|
%doc COPYING readme
|
|
@@ -124,6 +135,7 @@ rm -rf $RPM_BUILD_ROOT
|
|
%{_bindir}/%{name}-qt
|
|
%{_bindir}/%{name}-qt
|
|
%{_libdir}/libQZint.so.*
|
|
%{_libdir}/libQZint.so.*
|
|
%{_datadir}/applications/%{name}-qt.desktop
|
|
%{_datadir}/applications/%{name}-qt.desktop
|
|
|
|
+%{_datadir}/pixmaps/%{name}.png
|
|
|
|
|
|
%files qt-devel
|
|
%files qt-devel
|
|
%defattr(-,root,root,-)
|
|
%defattr(-,root,root,-)
|
|
@@ -132,6 +144,15 @@ rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
%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
|
|
* Thu Oct 28 2010 Shu KONNO <owa@bg.wakwak.com> 2.4.0-1
|
|
- initial build for Vine
|
|
- initial build for Vine
|
|
|
|
|