Fix license
[platform/core/uifw/anthy.git] / packaging / anthy.spec
index c7031a7..fddd7ed 100644 (file)
@@ -11,13 +11,22 @@ Source1001:         anthy.manifest
 #
 # URL: http://cannadic.oucrc.org
 # Source1: cannadic-0.93.tar.gz
-License: GPL-2.0+
+License: LGPL-2.1+ and GPL-2.0+
 Group: Graphics & UI Framework/Input
 BuildRoot: %{_tmppath}/%{name}-root
 
 %description
 A Japanese character input system library.
 
+%package devel
+Summary:        Include Files and Libraries mandatory for Development
+Group:          System/Utilities
+Requires:       %{name} = %{version}-%{release}
+
+%description devel
+This package contains all necessary include files and libraries needed
+to develop applications that require these.
+
 %prep
 %setup -q
 cp %{SOURCE1001} .
@@ -26,15 +35,18 @@ cp %{SOURCE1001} .
 #ln -s ../cannadic-0.93/gcannaf.t mkanthydic
 
 %build
-%configure
+[ ! -x autogen.sh ] || { rm -f configure ; %autogen ; }
+%reconfigure --disable-static --with-pic
+%__make %{?_smp_mflags}
+
+%configure --disable-zipcode
 
 make
 
 %install
 rm -rf ${RPM_BUILD_ROOT}
-mkdir -p %{buildroot}%{_datadir}/license
-cp COPYING %{buildroot}%{_datadir}/license/%{name}
 %makeinstall
+%{__rm} -f %{buildroot}%{_libdir}/*.la
 
 %clean
 rm -rf ${RPM_BUILD_ROOT}
@@ -47,15 +59,19 @@ rm -rf ${RPM_BUILD_ROOT}
 %files
 %manifest %{name}.manifest
 %defattr(-,root,root)
-%{_datadir}/license/%{name}
+%license COPYING COPYING.alt-cannadic COPYING.anthy
 %{_bindir}/*
 %{_sysconfdir}/*
 %{_datadir}/anthy
 #%{_datadir}/emacs/site-lisp/*
+%{_libdir}/libanthy*.so.*
+#%doc README doc
+
+%files devel
+%defattr(-,root,root)
 %{_libdir}/pkgconfig/*
-%{_libdir}/libanthy*
 %{_includedir}/*
-#%doc README doc
+%{_libdir}/*.so
 
 %changelog
 * Thu Jan  3 2002 Yusuke Tabata <yusuke@kmc.gr.jp>