Browse Source

libkkc 0.0.3-3.gitccfd5c6d

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

+ 33 - 2
lib/libk/libkkc/libkkc-vl.spec

@@ -1,5 +1,10 @@
 %define ver 0.0.3
-%define rel 2
+%define rel 3
+
+%define from_git 1
+%if %{from_git}
+%define githash ccfd5c6d
+%endif
 
 %if "%{?_dist_release}" == "vl6"
 %define with_vala 0
@@ -10,11 +15,19 @@
 Summary: Japanese Kana Kanji conversion library (libkkc)
 Name: libkkc
 Version: %{ver}
+%if %{from_git}
+Release: %{rel}.git%{githash}%{_dist_release}
+%else
 Release: %{rel}%{_dist_release}
+%endif
 License: GPLv3
 Group: System Environment/Libraries
 URL: https://bitbucket.org/libkkc/libkkc/
+%if %{from_git}
+Source0: libkkc-%{githash}.tar.gz
+%else
 Source0: https://bitbucket.org/libkkc/libkkc/downloads/%{name}-%{version}.tar.gz
+%endif
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
 %if "%{?_dist_release}" == "vl6"
 BuildRequires: libgee-devel
@@ -47,9 +60,16 @@ Requires: %{name} = %{version}-%{release}
 The libkkc-devel package contains the header files and libraries.
 
 %prep
+%if %{from_git}
+%setup -q -n %{name}-%{githash}
+%else
 %setup -q
+%endif
 
 %build
+%if %{from_git}
+./autogen.sh
+%endif
 %configure --enable-shared \
 %if %{with_vala}
            --enable-vala=yes \
@@ -63,13 +83,19 @@ The libkkc-devel package contains the header files and libraries.
 %__rm -rf $RPM_BUILD_ROOT
 %makeinstall
 
+%find_lang %{name}
+
 # remove files
 %__rm -f $RPM_BUILD_ROOT%{_libdir}/libkkc.la
 
 %clean
 %__rm -rf $RPM_BUILD_ROOT
 
-%files
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+%files -f %{name}.lang
 %defattr(-,root,root,-)
 %doc README ChangeLog COPYING AUTHORS NEWS
 %{_bindir}/kkc
@@ -90,6 +116,11 @@ The libkkc-devel package contains the header files and libraries.
 %{_datadir}/vala/vapi/kkc-1.0.vapi
 
 %changelog
+* Fri Feb  1 2013 IWAI, Masaharu <iwai@alib.jp> 0.0.3-3.gitccfd5c6d
+- update to git ccfd5c6d9f913e0a413fe5d0c45bb70032382f68
+- add post and postun script
+- add translate file
+
 * Tue Jan 29 2013 IWAI, Masaharu <iwai@alib.jp> 0.0.3-2
 - support Vine Linux 6
  - without Vala