[libcangjie: 2/5] Initial package for Fedora

Mathieu Bridon bochecha at fedoraproject.org
Mon Apr 29 14:12:41 UTC 2013


commit 1b0b5fe35422df49b51f37b80841f618a29a1b81
Author: Mathieu Bridon <bochecha at fedoraproject.org>
Date:   Sun Jan 13 16:46:55 2013 +0800

    Initial package for Fedora
    
    This was submitted for review on Sat Apr 20 2013:
        https://bugzilla.redhat.com/show_bug.cgi?id=954040

 libcangjie.spec |   71 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 71 insertions(+), 0 deletions(-)
---
diff --git a/libcangjie.spec b/libcangjie.spec
new file mode 100644
index 0000000..710a117
--- /dev/null
+++ b/libcangjie.spec
@@ -0,0 +1,71 @@
+Name:             libcangjie
+Summary:          CangJie Input Method Library
+Version:          0.0.1a
+Release:          1%{?dist}
+License:          LGPLv3+
+URL:              https://github.com/wanleung/libcangjie
+Source0:          http://wanleung.com/%{name}/%{name}-%{version}.tar.xz
+
+BuildRequires:    libdb-cxx-devel
+
+# For the unit tests
+BuildRequires:    perl(BerkeleyDB)
+
+%description
+CangJie Input Method Library
+
+
+%package devel
+Summary:          Development files for %{name}
+Requires:         %{name}%{_isa} = %{version}-%{release}
+Requires:         libdb-cxx-devel
+
+%description devel
+Development files for %{name}.
+
+
+%prep
+%setup -q
+
+
+%build
+%configure
+
+# Remove rpath
+sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
+sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
+
+make %{?_smp_mflags}
+
+
+%install
+make install DESTDIR=%{buildroot}
+
+find %{buildroot} -name '*.la' -exec rm -f '{}' \;
+
+
+%check
+make check
+
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+
+%files
+%doc README.md COPYING tables/COPYING.tables
+%{_datadir}/%{name}
+%{_libdir}/%{name}.so.1*
+
+
+%files devel
+%{_bindir}/libcangjie_*
+%{_includedir}/cangjie
+%{_libdir}/%{name}.so
+%{_libdir}/pkgconfig/cangjie.pc
+
+
+%changelog
+* Sat Apr 20 2013 Mathieu Bridon <bochecha at fedoraproject.org> - 0.0.1a-1
+- Initial package for Fedora.


More information about the scm-commits mailing list