Browse Source

libkkc 0.1.3-1

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@7453 ec354946-7b23-47d6-9f5a-488ba84defc7
iwaim 12 years ago
parent
commit
f9a9e0bb12
1 changed files with 85 additions and 3 deletions
  1. 85 3
      lib/libk/libkkc/libkkc-vl.spec

+ 85 - 3
lib/libk/libkkc/libkkc-vl.spec

@@ -1,5 +1,6 @@
-%define ver 0.1.2
+%define ver 0.1.3
 %define rel 1
+%define dataver 0.1.3
 
 %define from_git 0
 %if %{from_git}
@@ -20,7 +21,7 @@ Release: %{rel}.git%{githash}%{_dist_release}
 %else
 Release: %{rel}%{_dist_release}
 %endif
-License: GPLv3
+License: GPLv3+
 Group: System Environment/Libraries
 URL: https://bitbucket.org/libkkc/libkkc/
 %if %{from_git}
@@ -28,6 +29,7 @@ Source0: libkkc-%{githash}.tar.gz
 %else
 Source0: https://bitbucket.org/libkkc/libkkc/downloads/%{name}-%{version}.tar.gz
 %endif
+Source1: https://bitbucket.org/libkkc/libkkc-data/downloads/%{name}-data-%{dataver}.tar.xz
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
 %if "%{?_dist_release}" == "vl6"
 BuildRequires: libgee-devel
@@ -36,11 +38,16 @@ BuildRequires: libgee06-devel
 %endif
 BuildRequires: json-glib-devel
 BuildRequires: marisa-trie-devel
+# for libkkc-data
+BuildRequires: marisa-trie-python
 %if %{with_vala}
 BuildRequires: vala-devel
 BuildRequires: vala-tools
 %endif
 
+Requires: libkkc-data = %{version}-%{release}
+Requires: libkkc-common = %{version}-%{release}
+
 Vendor: Project Vine
 Distribution: Vine Linux
 Packager: iwaim
@@ -59,6 +66,29 @@ Requires: %{name} = %{version}-%{release}
 %description devel
 The libkkc-devel package contains the header files and libraries.
 
+%package tools
+Summary: Tools for %{name}
+Group: Applications/Accessories
+Requires: %{name} = %{version}-%{release}
+
+%description tools
+The %{name}-tools package contains tools for developing applications
+that use %{name}.
+
+%package common
+Summary: Common data files for %{name}
+
+%description common
+The %{name}-common package contains the arch-independent data that
+%{name} uses at run time.
+
+%package data
+Summary: Data files for %{name}
+
+%description data
+The %{name}-data package contains the language model data that %{name}
+uses at run time.
+
 %prep
 %if %{from_git}
 %setup -q -n %{name}-%{githash}
@@ -66,11 +96,15 @@ The libkkc-devel package contains the header files and libraries.
 %setup -q
 %endif
 
+# for libkkc-data
+tar xf %{SOURCE1}
+
 %build
 %if %{from_git}
 ./autogen.sh
 %endif
 %configure --enable-shared \
+           --disable-silent-rules \
 %if %{with_vala}
            --enable-vala=yes \
 %else
@@ -79,10 +113,21 @@ The libkkc-devel package contains the header files and libraries.
 
 %__make
 
+# for libkkc-data
+pushd %{name}-data-%{dataver}
+%configure
+%__make
+popd
+
 %install
 %__rm -rf $RPM_BUILD_ROOT
 %makeinstall
 
+# for libkkc-data
+pushd %{name}-data-%{dataver}
+%makeinstall
+popd
+
 %find_lang %{name}
 
 # remove files
@@ -98,7 +143,7 @@ The libkkc-devel package contains the header files and libraries.
 %files -f %{name}.lang
 %defattr(-,root,root,-)
 %doc README ChangeLog COPYING AUTHORS NEWS
-%{_bindir}/kkc
+%doc data/rules/README.rules
 %{_libdir}/libkkc.so.*
 %{_libdir}/girepository-1.0/Kkc-1.0.typelib
 %dir %{_datadir}/libkkc
@@ -115,7 +160,44 @@ The libkkc-devel package contains the header files and libraries.
 %{_datadir}/vala/vapi/kkc-1.0.deps
 %{_datadir}/vala/vapi/kkc-1.0.vapi
 
+%files tools
+%defattr(-,root,root,-)
+%doc COPYING AUTHORS
+%{_bindir}/kkc
+%{_bindir}/kkc-package-data
+
+%files common
+%defattr(-,root,root,-)
+%doc COPYING AUTHORS
+%dir %{_datadir}/libkkc
+%dir %{_datadir}/libkkc/templates
+%{_datadir}/libkkc/templates/libkkc-data
+
+%files data
+%defattr(-,root,root,-)
+%doc COPYING AUTHORS
+%dir %{_libdir}/libkkc
+%dir %{_libdir}/libkkc/models
+%{_libdir}/libkkc/models/sorted3
+
 %changelog
+* Fri Feb  8 2013 IWAI, Masaharu <iwai@alib.jp> 0.1.3-1
+- update to 0.1.3
+- update License value: GPLv3 -> GPLv3+
+- add BuildRequires: marisa-trie-python for libkkc-data
+- sync upstream spec: http://ueno.fedorapeople.org/libkkc/libkkc.spec 0.1.3-2
+ - create tools sub package
+  - move %%{_bindir}/kkc
+  - add %%{_bindir}/kkc-package-data
+ - create common sub package
+  - add template for generating libkkc-data
+ - merge libkkc-data SRPM file
+  - add libkkc-data source file (Source1)
+  - create data sub package
+ - add '--disable-silent-rules' option for configure
+ - add Requires libkkc-data and libkkc-common
+ - add document: data/rules/README.rules
+
 * Wed Feb  6 2013 IWAI, Masaharu <iwai@alib.jp> 0.1.2-1
 - update to 0.1.2