summaryrefslogtreecommitdiff
path: root/packaging/libidn.spec
diff options
context:
space:
mode:
Diffstat (limited to 'packaging/libidn.spec')
-rwxr-xr-xpackaging/libidn.spec80
1 files changed, 80 insertions, 0 deletions
diff --git a/packaging/libidn.spec b/packaging/libidn.spec
new file mode 100755
index 0000000..74d0ba2
--- /dev/null
+++ b/packaging/libidn.spec
@@ -0,0 +1,80 @@
+Name: libidn
+Summary: Internationalized Domain Name support library
+Version: 1.15
+Release: 0
+Group: System/Libraries
+License: LGPL-2.1+
+URL: http://www.gnu.org/software/libidn/
+Source0: http://ftp.gnu.org/gnu/libidn/%{name}-%{version}.tar.gz
+Source1: baselibs.conf
+Source1001: libidn.manifest
+Requires(post): /sbin/ldconfig
+Requires(postun): /sbin/ldconfig
+BuildRequires: pkgconfig
+BuildRequires: gettext-tools
+BuildRequires: libtool
+BuildRequires: autoconf
+
+%description
+GNU Libidn is an implementation of the Stringprep, Punycode and
+IDNA specifications defined by the IETF Internationalized Domain
+Names (IDN) working group, used for internationalized domain
+names.
+
+
+%package devel
+Summary: Development files for the libidn library
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+Requires: glibc-devel
+
+%description devel
+This package includes header files and libraries necessary for
+developing programs which use the GNU libidn library.
+
+
+%prep
+%setup -q
+
+
+%build
+
+%configure --disable-static \
+ --disable-csharp \
+ --disable-java \
+ --with-pic
+
+make "%{?_smp_mflags}"
+
+%install
+%make_install
+
+rm -f %{buildroot}/%_infodir/dir
+rm -f %{buildroot}%{_libdir}/libidn.la
+rm -f %{buildroot}%_infodir/libidn-components.png
+rm -f %{buildroot}%{_bindir}/idn
+%find_lang libidn
+
+%remove_docs
+
+mkdir -p %{buildroot}/usr/share/license
+cp COPYING.LIB %{buildroot}/usr/share/license/%{name}
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+%files -f libidn.lang
+%defattr(-,root,root,-)
+%dir %{_datadir}/emacs
+%dir %{_datadir}/emacs/site-lisp
+%{_datadir}/emacs/site-lisp/idna.el
+%{_datadir}/emacs/site-lisp/punycode.el
+%{_libdir}/libidn.so.*
+/usr/share/license/%{name}
+
+%files devel
+%defattr(-,root,root,-)
+%{_libdir}/libidn.so
+%{_includedir}/*.h
+%{_libdir}/pkgconfig/libidn.pc