From bf5efa1d9367d23b7ffb926df9d6fe7e3f0ab9c8 Mon Sep 17 00:00:00 2001 From: "sung-su.kim" Date: Wed, 31 Jul 2013 09:21:39 +0900 Subject: [PATCH] [Release] libiri_1.6 Change-Id: I62ed6406b143acf5f723a5912e8d2247ae42225b --- debian/changelog | 26 --------- debian/compat | 1 - debian/control | 20 ------- debian/copyright | 21 -------- debian/dirs | 0 debian/docs | 0 debian/libiri-dev.install.in | 2 - debian/libiri.install.in | 1 - debian/rules | 125 ------------------------------------------- libiri.pc.in | 2 +- packaging/libiri.spec | 59 ++++++++++---------- 11 files changed, 30 insertions(+), 227 deletions(-) delete mode 100644 debian/changelog delete mode 100644 debian/compat delete mode 100644 debian/control delete mode 100644 debian/copyright delete mode 100644 debian/dirs delete mode 100644 debian/docs delete mode 100644 debian/libiri-dev.install.in delete mode 100644 debian/libiri.install.in delete mode 100755 debian/rules diff --git a/debian/changelog b/debian/changelog deleted file mode 100644 index 7804fa0..0000000 --- a/debian/changelog +++ /dev/null @@ -1,26 +0,0 @@ -libiri (1.2) unstable; urgency=low - - * Optimize OBS (Add the spec file) - - * Git : 165.213.180.234:slp/pkgs/l/libiri - * Tag : libiri_1.2 - - -- Jihoon Chung Wed, 14 Mar 2012 12:48:10 +0900 - -libiri (1.1) unstable; urgency=low - - * fix bug regarding length of iri - - * Git : 165.213.180.234:slp/pkgs/l/libiri - * Tag : libiri_1.1 - - -- Yunchan Cho Wed, 07 Dec 2011 12:36:14 +0900 - -libiri (1.0) unstable; urgency=low - - * debianized - - * Git : 165.213.180.234:slp/pkgs/l/libiri - * Tag : libiri_1.0 - - -- Yunchan Cho Fri, 02 Dec 2011 16:03:15 +0900 diff --git a/debian/compat b/debian/compat deleted file mode 100644 index 7ed6ff8..0000000 --- a/debian/compat +++ /dev/null @@ -1 +0,0 @@ -5 diff --git a/debian/control b/debian/control deleted file mode 100644 index 3475c08..0000000 --- a/debian/control +++ /dev/null @@ -1,20 +0,0 @@ -Source: libiri -Section: net -Priority: extra -Maintainer: Yunchan Cho -Uploaders: Yunchan Cho -Build-Depends: debhelper (>= 5), autotools-dev, pkg-config -Standards-Version: 0.1.0 - -Package: libiri -Section: libs -Architecture: any -Depends: ${shlibs:Depends}, ${misc:Depends} -Replaces: libiri -Description: a simple library for parsing Internationalized Resource Identifiers (IRIs) - -Package: libiri-dev -Section: libdevel -Architecture: any -Depends: libiri (= ${Source-Version}) -Description: a simple library for parsing Internationalized Resource Identifiers (IRIs) diff --git a/debian/copyright b/debian/copyright deleted file mode 100644 index 88d6d99..0000000 --- a/debian/copyright +++ /dev/null @@ -1,21 +0,0 @@ -This is libiri, written and maintained by unknown -on Mon, 29 Nov 2010 13:54:22 +0900. - -The original source can always be found at: - http://libiri.googlecode.com/svn/trunk/ - -Copyright: - Copyright (c) 2005, 2008 Mo McRoberts. - -License: - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions - are met: - 1. Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - 2. Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - 3. The names of the author(s) of this software may not be used to endorse - or promote products derived from this software without specific prior - written permission. diff --git a/debian/dirs b/debian/dirs deleted file mode 100644 index e69de29..0000000 diff --git a/debian/docs b/debian/docs deleted file mode 100644 index e69de29..0000000 diff --git a/debian/libiri-dev.install.in b/debian/libiri-dev.install.in deleted file mode 100644 index 0f2a4da..0000000 --- a/debian/libiri-dev.install.in +++ /dev/null @@ -1,2 +0,0 @@ -@PREFIX@/include/* -@PREFIX@/lib/pkgconfig/*.pc diff --git a/debian/libiri.install.in b/debian/libiri.install.in deleted file mode 100644 index bf766f0..0000000 --- a/debian/libiri.install.in +++ /dev/null @@ -1 +0,0 @@ -@PREFIX@/lib/*.so* diff --git a/debian/rules b/debian/rules deleted file mode 100755 index f12218c..0000000 --- a/debian/rules +++ /dev/null @@ -1,125 +0,0 @@ -#!/usr/bin/make -f -# -*- makefile -*- -# Sample debian/rules that uses debhelper. -# This file was originally written by Joey Hess and Craig Small. -# As a special exception, when this file is copied by dh-make into a -# dh-make output file, you may use that output file without restriction. -# This special exception was added by Craig Small in version 0.37 of dh-make. - -# Uncomment this to turn on verbose mode. -#export DH_VERBOSE=1 - - -# These are used for cross-compiling and for saving the configure script -# from having to guess our platform (since we know it already) -DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) -DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) - -CFLAGS ?= -Wall -g -LDFLAGS ?= -PREFIX ?= /usr -DATADIR ?= /opt - -ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) - CFLAGS += -O0 -else - CFLAGS += -O2 -endif - -LDFLAGS += -Wl,--rpath=$(PREFIX)/lib -Wl,--as-needed - -config.status: - dh_testdir - # Add here commands to configure the package. - CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" ./autogen.sh --prefix=$(PREFIX) - -build: build-stamp - -build-stamp: config.status - dh_testdir -# mkdir -p autotools -# libtoolize --force || exit 1 -# aclocal -I autotools || exit 1 -# autoheader || exit 1 -# automake --add-missing --copy || exit 1 -# autoconf || exit 1 - - # Add here commands to compile the package. - $(MAKE) - #docbook-to-man debian/ncurses.sgml > ncurses.1 - - for f in `find $(CURDIR)/debian/ -name "*.in"`; do \ - cat $$f > $${f%.in}; \ - sed -i -e "s#@PREFIX@#$(PREFIX)#g" $${f%.in}; \ - sed -i -e "s#@DATADIR@#$(DATADIR)#g" $${f%.in}; \ - done - - touch $@ - -clean: - dh_testdir - dh_testroot - rm -f build-stamp - - # Add here commands to clean up after the build process. - -$(MAKE) distclean -ifneq "$(wildcard /usr/share/misc/config.sub)" "" - cp -f /usr/share/misc/config.sub config.sub -endif -ifneq "$(wildcard /usr/share/misc/config.guess)" "" - cp -f /usr/share/misc/config.guess config.guess -endif - - for f in `find $(CURDIR)/debian/ -name "*.in"`; do \ - rm -f $${f%.in}; \ - done - - dh_clean - -install: build - dh_testdir - dh_testroot - dh_clean -k - dh_installdirs - - # Add here commands to install the package into debian/ncurses. - $(MAKE) DESTDIR=$(CURDIR)/debian/tmp install - - -# Build architecture-independent files here. -binary-indep: build install -# We have nothing to do by default. - -# Build architecture-dependent files here. -binary-arch: build install - dh_testdir - dh_testroot - dh_installchangelogs - dh_installdocs - dh_installexamples - dh_install --sourcedir=debian/tmp -# dh_installmenu -# dh_installdebconf -# dh_installlogrotate -# dh_installemacsen -# dh_installpam -# dh_installmime -# dh_python -# dh_installinit -# dh_installcron -# dh_installinfo - dh_installman - dh_link - dh_strip - dh_compress - dh_fixperms -# dh_perl - dh_makeshlibs - dh_installdeb - dh_shlibdeps - dh_gencontrol - dh_md5sums - dh_builddeb - -binary: binary-indep binary-arch -.PHONY: build clean binary-indep binary-arch binary install diff --git a/libiri.pc.in b/libiri.pc.in index f2ffbfe..9949f4a 100644 --- a/libiri.pc.in +++ b/libiri.pc.in @@ -2,7 +2,7 @@ prefix=/usr exec_prefix=${prefix} -libdir=@libdir@ +libdir=${prefix}/lib includedir=${prefix}/include Name: libiri diff --git a/packaging/libiri.spec b/packaging/libiri.spec index febe452..894aa96 100644 --- a/packaging/libiri.spec +++ b/packaging/libiri.spec @@ -1,54 +1,53 @@ -Name: libiri -Version: 1.1 -Release: 1 -License: BSD -Summary: An IRI parsing library -Url: http://code.google.com/p/libiri/ -Group: System/Libraries -Source: %{name}-%{version}.tar.gz -BuildRequires: autoconf -BuildRequires: automake -BuildRequires: libtool +Name: libiri +Summary: a simple library for parsing Internationalized Resource Identifiers (IRIs) +Version: 1.6 +Release: 1 +Group: Development/Libraries +License: TO_BE_FILLED +Source0: %{name}-%{version}.tar.gz +BuildRequires: pkgconfig(dlog) %description -libiri is a simple toolkit for parsing Internationalized Resource Identifiers (IRIs). +a simple library for parsing Internationalized Resource Identifiers (IRIs) -For many intents and purposes, you can think of libiri as a “URL parser which supports Unicode”. - -Specifically: - -URLs are a subset of URIs -URIs are restricted to a portion of the ASCII character set -IRIs are a superset of URIs that are not restricted to ASCII characters -If something is a valid URL or URI, it's also a valid IRI. %package devel -Summary: An IRI parsing library - Development Files +Summary: a simple library for parsing Internationalized Resource Identifiers (IRIs) (Developement) Group: Development/Libraries Requires: %{name} = %{version} %description devel -libiri is a simple toolkit for parsing Internationalized Resource Identifiers (IRIs). +a simple library for parsing Internationalized Resource Identifiers (IRIs) (Developement) %prep %setup -q %build -sh ./autogen.sh -%configure -make %{?_smp_mflags} +./autogen.sh --prefix=/usr +make %{?jobs:-j%jobs} %install +rm -rf %{buildroot} +mkdir -p %{buildroot}/usr/share/license +cp LICENSE %{buildroot}/usr/share/license/%{name} %make_install +%clean +rm -rf %{buildroot} + +%post + +%postun %files %manifest libiri.manifest -%{_libdir}/*.so - +%defattr(-,root,root,-) +%{_libdir}/libiri.so +%{_bindir}/iri-config +%{_datadir}/license/%{name} %files devel -%{_libdir}/pkgconfig/*.pc -%{_includedir}/*.h -/usr/bin/iri-config +%defattr(-,root,root,-) +%{_includedir}/iri.h +%{_libdir}/pkgconfig/libiri.pc -- 2.7.4