105 lines
3.1 KiB
RPMSpec
105 lines
3.1 KiB
RPMSpec
|
#
|
||
|
# spec file for package libuna
|
||
|
#
|
||
|
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||
|
#
|
||
|
# All modifications and additions to the file contributed by third parties
|
||
|
# remain the property of their copyright owners, unless otherwise agreed
|
||
|
# upon. The license for this file, and modifications and additions to the
|
||
|
# file, is the same license as for the pristine package itself (unless the
|
||
|
# license for the pristine package is not an Open Source License, in which
|
||
|
# case the license is the MIT License). An "Open Source License" is a
|
||
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||
|
# published by the Open Source Initiative.
|
||
|
|
||
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||
|
#
|
||
|
|
||
|
|
||
|
|
||
|
Name: libuna
|
||
|
%define lname libuna1
|
||
|
%define timestamp 20130103
|
||
|
Version: 0~%timestamp
|
||
|
Release: 0
|
||
|
License: LGPL-3.0+
|
||
|
Summary: Library to support Unicode and ASCII (byte string) conversions
|
||
|
Group: Development/Libraries/C and C++
|
||
|
Url: http://code.google.com/p/libuna/
|
||
|
|
||
|
#DL-URL: http://libuna.googlecode.com/files/libuna-alpha-%timestamp.tar.gz
|
||
|
Source: %name-alpha-%timestamp.tar.xz
|
||
|
BuildRequires: pkg-config
|
||
|
BuildRequires: xz
|
||
|
#BuildRequires: pkgconfig(libcerror) >= 20120425
|
||
|
#BuildRequires: pkgconfig(libcfile) >= 20120526
|
||
|
#BuildRequires: pkgconfig(libclocale) >= 20120425
|
||
|
#BuildRequires: pkgconfig(libcnotify) >= 20120425
|
||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||
|
|
||
|
%description
|
||
|
libuna is a library to support Unicode and ASCII (byte string)
|
||
|
conversions. It currently supports: 7-bit ASCII, ISO 8859-{1..15},
|
||
|
Windows 874, 932, 936, 949, 950, 1250, 1251, 1252, 1253, 1254, 1255,
|
||
|
1256, 1257, 1258, KOI8-R, KOI8-U, UTF-7, UTF-8, UTF-16, UTF-32.
|
||
|
|
||
|
%package -n %lname
|
||
|
Summary: Library to support Unicode and ASCII (byte string) conversions
|
||
|
Group: System/Libraries
|
||
|
|
||
|
%description -n %lname
|
||
|
libuna is a library to support Unicode and ASCII (byte string)
|
||
|
conversions.
|
||
|
|
||
|
%package tools
|
||
|
Summary: Utilities from libuna for Unicode/ASCII Byte Stream conversions
|
||
|
Group: Development/Tools/Other
|
||
|
|
||
|
%description tools
|
||
|
Several tools for converting Unicode and ASCII (byte stream) based text.
|
||
|
|
||
|
%package devel
|
||
|
Summary: Development files for libuna, a library to support Unicode/ASCII conversions
|
||
|
Group: Development/Libraries/C and C++
|
||
|
Requires: %lname = %version
|
||
|
|
||
|
%description devel
|
||
|
libuna is a library to support Unicode and ASCII (byte string)
|
||
|
conversions.
|
||
|
|
||
|
This subpackage contains libraries and header files for developing
|
||
|
applications that want to make use of libuna.
|
||
|
|
||
|
%prep
|
||
|
%setup -qn libuna-%timestamp
|
||
|
|
||
|
%build
|
||
|
%configure --disable-static --enable-wide-character-type --enable-python
|
||
|
make %{?_smp_mflags}
|
||
|
|
||
|
%install
|
||
|
make install DESTDIR="%buildroot"
|
||
|
rm -f "%buildroot/%_libdir"/*.la
|
||
|
|
||
|
%post -n %lname -p /sbin/ldconfig
|
||
|
%postun -n %lname -p /sbin/ldconfig
|
||
|
|
||
|
%files -n %lname
|
||
|
%defattr(-,root,root)
|
||
|
%doc AUTHORS COPYING ChangeLog ABOUT-NLS
|
||
|
%_libdir/libuna.so.1*
|
||
|
|
||
|
%files tools
|
||
|
%defattr(-,root,root)
|
||
|
%_bindir/una*
|
||
|
%_mandir/man1/unaexport.1*
|
||
|
|
||
|
%files devel
|
||
|
%defattr(-,root,root)
|
||
|
%_includedir/libuna*
|
||
|
%_libdir/libuna.so
|
||
|
%_libdir/pkgconfig/libuna.pc
|
||
|
%_mandir/man3/libuna.3*
|
||
|
|
||
|
%changelog
|