mirror of
https://github.com/zint/zint
synced 2024-11-16 20:57:25 +13:00
Updated .spec for Fedora
This commit is contained in:
parent
6b68a42ccc
commit
1d6cec65f2
214
zint.spec
214
zint.spec
@ -1,70 +1,144 @@
|
|||||||
Name: zint
|
Name: zint
|
||||||
Version: 2.3
|
Version: 2.3.1
|
||||||
Release: 1
|
Release: 2%{?dist}
|
||||||
Summary: A barcode encoding library.
|
Summary: A barcode generator and library
|
||||||
Summary(ru_RU.UTF8): A barcode encoding library.
|
License: GPLv3+
|
||||||
License: GPL
|
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
|
||||||
Vendor: Robin Stuart <robin@zint.org.uk>
|
Group: Applications/Engineering
|
||||||
Packager: Radist Tagan <radist@list.ru>
|
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
|
||||||
Group: Development/Libraries/C and C++
|
|
||||||
|
# Reset locales to "C" when exporting to EPS or SVG in order to force
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
# decimal points in all language environments.
|
||||||
Source: %name-%version.tar.bz2
|
# This issue has been reported upstream:
|
||||||
Patch: error_svg_plot_fix.patch
|
# http://sourceforge.net/mailarchive/forum.php?thread_name=4BF78012.7090508%40uos.de&forum_name=zint-barcode
|
||||||
|
Patch0: zint-locale.patch
|
||||||
##Requires: Qt >= 4.4
|
|
||||||
BuildRequires: cmake
|
BuildRequires: cmake
|
||||||
BuildRequires: libqt4-devel
|
BuildRequires: libpng-devel
|
||||||
BuildRequires: libpng-devel
|
BuildRequires: zlib-devel
|
||||||
BuildRequires: zlib-devel
|
|
||||||
BuildRequires: qrencode-devel
|
%description
|
||||||
|
Zint is a C library for encoding data in several barcode variants. The
|
||||||
%description
|
bundled command-line utility provides a simple interface to the library.
|
||||||
A library for encoding data in barcode symbols. Includes support for over 50 symbologies including
|
Features of the library:
|
||||||
all ISO/IEC standards.
|
- Over 50 symbologies including all ISO/IEC standards, like QR codes.
|
||||||
|
- Unicode translation for symbologies which support Latin-1 and
|
||||||
%package -n zint-devel
|
Kanji character sets.
|
||||||
Summary: Library and header files for zint.
|
- Full GS1 support including data verification and automated insertion of
|
||||||
Group: Development/C
|
FNC1 characters.
|
||||||
Provides: %{name}-devel = %{version}
|
- Support for encoding binary data including NULL (ASCII 0) characters.
|
||||||
Requires: zint = %{version}
|
- Health Industry Barcode (HIBC) encoding capabilities.
|
||||||
|
- Output in PNG, EPS and SVG formats with user adjustable sizes and colors.
|
||||||
%description -n zint-devel
|
- Verification stage for SBN, ISBN and ISBN-13 data.
|
||||||
A library for encoding data in barcode symbols. Includes support for over 50 symbologies including
|
|
||||||
all ISO/IEC standards.
|
|
||||||
|
%package -n zint-devel
|
||||||
%debug_package
|
Summary: Library and header files for %{name}
|
||||||
|
Group: Development/Libraries
|
||||||
%prep
|
Requires: %{name} = %{version}-%{release}
|
||||||
%setup
|
|
||||||
%patch -p1
|
%description -n zint-devel
|
||||||
|
C library and header files needed to develop applications using %{name}.
|
||||||
%build
|
The API documentation can be found ont the project website:
|
||||||
##mkdir 'build'
|
http://www.zint.org.uk/zintSite/Manual.aspx
|
||||||
##cd build
|
|
||||||
cmake CMakeLists.txt
|
|
||||||
make -j2
|
%package -n zint-qt
|
||||||
|
Summary: Zint Barcode Studio GUI and library
|
||||||
%install
|
Group: Applications/Engineering
|
||||||
rm -rf $RPM_BUILD_ROOT
|
Requires: %{name} = %{version}-%{release}
|
||||||
%makeinstall
|
BuildRequires: qt-devel >= 4.4
|
||||||
cd %buildroot/usr/ && mv ./local/* ./
|
BuildRequires: desktop-file-utils
|
||||||
##make install DESTDIR=$RPM_BUILD_ROOT
|
|
||||||
%post
|
%description -n zint-qt
|
||||||
/sbin/ldconfig
|
Zint Barcode Studio is a Qt-based GUI which allows desktop users to generate
|
||||||
%postun
|
barcodes which can then be embedded in documents or HTML pages, and a library
|
||||||
ldconfig
|
which can be used to incorporate barcode generation functionality into other
|
||||||
%clean
|
software.
|
||||||
|
|
||||||
%files
|
|
||||||
%{_libdir}/*
|
%package -n zint-qt-devel
|
||||||
%{_datadir}/cmake/Modules/FindZint.cmake
|
Summary: Library and header files for %{name}-qt
|
||||||
|
Group: Development/Libraries
|
||||||
%files -n zint-devel
|
Requires: %{name}-devel = %{version}-%{release}
|
||||||
%defattr(-,root,root,-)
|
Requires: %{name}-qt = %{version}-%{release}
|
||||||
%{_includedir}/*.h
|
|
||||||
|
%description -n zint-qt-devel
|
||||||
%changelog
|
C library and header files needed to develop applications using %{name}-qt.
|
||||||
* Thu Mar 17 2009 radist <radist@list.ru>
|
|
||||||
+ Make spec
|
|
||||||
|
%prep
|
||||||
|
%setup -q
|
||||||
|
%patch0 -p1
|
||||||
|
|
||||||
|
# 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*.*
|
||||||
|
|
||||||
|
%build
|
||||||
|
%cmake CMakeLists.txt
|
||||||
|
make VERBOSE=1 %{?_smp_mflags}
|
||||||
|
|
||||||
|
cat <<EOF >zint-qt.desktop
|
||||||
|
[Desktop Entry]
|
||||||
|
Name=Zint Barcode Studio
|
||||||
|
GenericName=Zint Barcode Studio
|
||||||
|
Exec=zint-qt
|
||||||
|
Icon=zint
|
||||||
|
Terminal=false
|
||||||
|
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 frontend_qt4/images/%{name}_white.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
|
||||||
|
|
||||||
|
%clean
|
||||||
|
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
|
||||||
|
|
||||||
|
|
||||||
|
%files
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%doc COPYING readme
|
||||||
|
%{_bindir}/%{name}
|
||||||
|
%{_libdir}/libzint.so.*
|
||||||
|
|
||||||
|
%files -n %{name}-devel
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%{_includedir}/%{name}.h
|
||||||
|
%{_libdir}/libzint.so
|
||||||
|
|
||||||
|
%files -n %{name}-qt
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%{_bindir}/%{name}-qt
|
||||||
|
%{_libdir}/libQZint.so.*
|
||||||
|
%{_datadir}/applications/%{name}-qt.desktop
|
||||||
|
%{_datadir}/pixmaps/%{name}.png
|
||||||
|
|
||||||
|
%files -n %{name}-qt-devel
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%{_includedir}/qzint.h
|
||||||
|
%{_libdir}/libQZint.so
|
||||||
|
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Sat May 22 2010 Martin Gieseking <martin.gieseking@uos.de> - 2.3.1-2
|
||||||
|
- Added patch to fix export issue
|
||||||
|
|
||||||
|
* Fri May 21 2010 Martin Gieseking <martin.gieseking@uos.de> - 2.3.1-1
|
||||||
|
- initial package
|
||||||
|
Loading…
Reference in New Issue
Block a user