tizen 2.3.1 release tizen_2.3.1 submit/tizen_2.3.1/20150915.074649 tizen_2.3.1_release
authorjk7744.park <jk7744.park@samsung.com>
Tue, 8 Sep 2015 12:57:47 +0000 (21:57 +0900)
committerjk7744.park <jk7744.park@samsung.com>
Tue, 8 Sep 2015 12:57:47 +0000 (21:57 +0900)
12 files changed:
debian/changelog [deleted file]
debian/compat [deleted file]
debian/control [deleted file]
debian/copyright [deleted file]
debian/dirs [deleted file]
debian/docs [deleted file]
debian/libiri-dev.install.in [deleted file]
debian/libiri.install.in [deleted file]
debian/rules [deleted file]
libiri.manifest [new file with mode: 0644]
libiri/parse.c
packaging/libiri.spec

diff --git a/debian/changelog b/debian/changelog
deleted file mode 100644 (file)
index 7804fa0..0000000
+++ /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 <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
diff --git a/debian/compat b/debian/compat
deleted file mode 100644 (file)
index 7ed6ff8..0000000
+++ /dev/null
@@ -1 +0,0 @@
-5
diff --git a/debian/control b/debian/control
deleted file mode 100644 (file)
index 3475c08..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-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) 
diff --git a/debian/copyright b/debian/copyright
deleted file mode 100644 (file)
index 88d6d99..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-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.
diff --git a/debian/dirs b/debian/dirs
deleted file mode 100644 (file)
index e69de29..0000000
diff --git a/debian/docs b/debian/docs
deleted file mode 100644 (file)
index e69de29..0000000
diff --git a/debian/libiri-dev.install.in b/debian/libiri-dev.install.in
deleted file mode 100644 (file)
index 0f2a4da..0000000
+++ /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 (file)
index bf766f0..0000000
+++ /dev/null
@@ -1 +0,0 @@
-@PREFIX@/lib/*.so*
diff --git a/debian/rules b/debian/rules
deleted file mode 100755 (executable)
index f12218c..0000000
+++ /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.manifest b/libiri.manifest
new file mode 100644 (file)
index 0000000..07d2232
--- /dev/null
@@ -0,0 +1,8 @@
+<manifest>
+  <assign>
+    <filesystem path="/usr/bin/iri-config" label="_" exec_label="none"/>
+  </assign>
+  <request>
+    <domain name="_"/>
+  </request>
+</manifest>
index ea12de7..2ed3e2f 100644 (file)
@@ -428,7 +428,7 @@ iri_parse(const char *src)
 {
        iri_t *p;
        char *bufstart, *endp, *bufp, **sl;
-       const char *at, *colon, *slash, *t;
+    const char *at, *colon, *slash, *t, *slash3rd;
        size_t buflen, sc, cp;
        
        if(NULL == (p = (iri_t *) calloc(1, sizeof(iri_t))))
@@ -450,6 +450,24 @@ iri_parse(const char *src)
                /* We can disregard the colon if a slash appears before it */
                colon = NULL;
        }
+    // "@" is valid character in hierarchical part of IRI
+    if(slash && colon && (colon[1] != '/' || colon[2] != '/'))
+    {
+        //if scheme not suffixed with ://, there is not autority
+        //therefore autority(and user within) is not set
+        at = NULL;
+    }
+    else if(at && slash && slash[1] && slash[2])
+    {
+        slash3rd = strchr(slash + 2, '/');
+        //here we know scheme suffix is "://" so autority can exist
+        //3rd slash should match start of hierarchical part if exists
+        //@ after that is valid character
+        if(slash3rd && slash3rd < at)
+        {
+            at = NULL;
+        }
+    }
        if(colon && !at)
        {
                /* Definitely a scheme */
index 55b5c46..f90d8f2 100644 (file)
@@ -1,51 +1,53 @@
-Name:           libiri
-Version:       1.1
-Release:       1
-License:       BSD
-Summary:       An IRI parsing library
-Url:           http://code.google.com/p/libiri/
-Group:         Libraries
-Source:                %{name}-%{version}.tar.gz
-BuildRequires: autoconf, automake, libtool
+Name:    libiri
+Summary: a simple library for parsing Internationalized Resource Identifiers (IRIs)
+Version: 1.7
+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:
+%package devel
+Summary:    a simple library for parsing Internationalized Resource Identifiers (IRIs) (Developement)
+Group:      Development/Libraries
+Requires:   %{name} = %{version}
 
-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.
+%description devel
+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
 
-%files
-%{_libdir}/*.so
+%postun
 
 
-%package devel
-Summary:    An IRI parsing library - Development Files
-Group:      Development/Libraries
-Requires:   %{name} = %{version}-%{release}
-
-%description devel
-libiri is a simple toolkit for parsing Internationalized Resource Identifiers (IRIs).
+%files
+%manifest libiri.manifest
+%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