Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:12.2
opencc
opencc.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File opencc.spec of Package opencc
# # spec file for package opencc # # Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # Name: opencc Version: 0.3.0git.1324715872 Release: 0 Summary: Open Chinese Convert License: Apache-2.0 Group: System/Libraries Url: http://code.google.com/p/opencc Source: %{name}-%{version}.tar.bz2 BuildRequires: cmake BuildRequires: gettext BuildRequires: pkg-config BuildRoot: %{_tmppath}/%{name}-%{version}-build %description An opensource project for conversion between Traditional Chinese and Simplified Chinese, which supports phrase-level conversion and regional idioms among Mainland China, Taiwan and Hong kong. %package -n libopencc1 Summary: Open Chinese Convert Group: System/Libraries %description -n libopencc1 An opensource project for conversion between Traditional Chinese and Simplified Chinese, which supports phrase-level conversion and regional idioms among Mainland China, Taiwan and Hong kong. %package devel Summary: Open Chinese Convert Group: Development/Libraries/C and C++ Requires: %{name} = %{version} %description devel An opensource project for conversion between Traditional Chinese and Simplified Chinese, which supports phrase-level conversion and regional idioms among Mainland China, Taiwan and Hong kong. %prep %setup -q %build %{__mkdir} -pv build pushd build cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} -DCMAKE_BUILD_TYPE=Release -DENABLE_GETTEXT:BOOL=ON .. make %install pushd build %makeinstall #fix libraries %if %{_lib} == lib64 %{__mkdir} -pv %{buildroot}/usr/lib64/pkgconfig/ %{__mv} %{buildroot}/usr/lib/pkgconfig/* %{buildroot}%{_libdir}/pkgconfig/ %{__mv} %{buildroot}/usr/lib/libopencc.* %{buildroot}%{_libdir} %{__rm} -rf %{buildroot}%{_libdir}/libopencc.a %else %{__rm} -rf %{buildroot}/usr/lib/libopencc.a %endif %{__strip} %{buildroot}%{_libdir}/libopencc.so.1.0.0 %find_lang %{name} %{__mv} %{name}.lang ../ %post -n libopencc1 -p /sbin/ldconfig %postun -n libopencc1 -p /sbin/ldconfig %files -f %{name}.lang %defattr(-,root,root) %doc AUTHORS NEWS %{_bindir}/%{name} %{_bindir}/%{name}_dict %{_datadir}/%{name}/ %files -n libopencc1 %defattr(-,root,root) %{_libdir}/libopencc.so.1 %{_libdir}/libopencc.so.1.0.0 %files devel %defattr(-,root,root) %{_includedir}/%{name}/ %{_libdir}/libopencc.so %{_libdir}/pkgconfig/opencc.pc %{_mandir}/man1/%{name}.1.gz %{_mandir}/man1/%{name}_dict.1.gz %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor