+++ /dev/null
-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 <jihoon.chung@samsung.com> 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 <yunchan.cho@samsung.com> 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 <yunchan.cho@samsung.com> Fri, 02 Dec 2011 16:03:15 +0900
+++ /dev/null
-Source: libiri
-Section: net
-Priority: extra
-Maintainer: Yunchan Cho <yunchan.cho@samsung.com>
-Uploaders: Yunchan Cho <yunchan.cho@samsung.com>
-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)
+++ /dev/null
-This is libiri, written and maintained by unknown <yunchan.cho@samsung.com>
-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.
+++ /dev/null
-@PREFIX@/include/*
-@PREFIX@/lib/pkgconfig/*.pc
+++ /dev/null
-@PREFIX@/lib/*.so*
+++ /dev/null
-#!/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
prefix=/usr
exec_prefix=${prefix}
-libdir=@libdir@
+libdir=${prefix}/lib
includedir=${prefix}/include
Name: libiri
-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