Accepting request 203277 from home:Lazy_Kent
Useful package. OBS-URL: https://build.opensuse.org/request/show/203277 OBS-URL: https://build.opensuse.org/package/show/M17N/uchardet?expand=0&rev=1
This commit is contained in:
commit
16561e7a42
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.osc
|
1
baselibs.conf
Normal file
1
baselibs.conf
Normal file
@ -0,0 +1 @@
|
||||
libuchardet0
|
3
uchardet-0.0.1.tar.gz
Normal file
3
uchardet-0.0.1.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:e238c212350e07ebbe1961f8f128faaa40f71b70d37b63ffa2fe12c664269ee6
|
||||
size 179207
|
5
uchardet.changes
Normal file
5
uchardet.changes
Normal file
@ -0,0 +1,5 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 14 10:06:31 UTC 2013 - lazy.kent@opensuse.org
|
||||
|
||||
- Initial package created - 0.0.1.
|
||||
|
111
uchardet.spec
Normal file
111
uchardet.spec
Normal file
@ -0,0 +1,111 @@
|
||||
#
|
||||
# spec file for package uchardet
|
||||
#
|
||||
# Copyright (c) 2013 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/
|
||||
#
|
||||
|
||||
%define major 0
|
||||
|
||||
Name: uchardet
|
||||
Version: 0.0.1
|
||||
Release: 0
|
||||
License: MPL-1.1 or GPL-2.0+ or LGPL-2.1+
|
||||
Summary: Universal Charset Detection Library
|
||||
Url: https://code.google.com/p/uchardet/
|
||||
Group: Productivity/Text/Utilities
|
||||
Source0: https://%{name}.googlecode.com/files/%{name}-%{version}.tar.gz
|
||||
Source1: baselibs.conf
|
||||
BuildRequires: cmake
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: pkg-config
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
|
||||
%description
|
||||
uchardet is a C language binding of the original C++ implementation of
|
||||
the universal charset detection library by Mozilla.
|
||||
|
||||
uchardet is an encoding detector library, which takes a sequence of
|
||||
bytes in an unknown character encoding without any additional
|
||||
information, and attempts to determine the encoding of the text.
|
||||
|
||||
%package -n libuchardet%{major}
|
||||
Summary: Universal Charset Detection Library
|
||||
Group: System/Libraries
|
||||
|
||||
%description -n libuchardet%{major}
|
||||
uchardet is a C language binding of the original C++ implementation of
|
||||
the universal charset detection library by Mozilla.
|
||||
|
||||
uchardet is an encoding detector library, which takes a sequence of
|
||||
bytes in an unknown character encoding without any additional
|
||||
information, and attempts to determine the encoding of the text.
|
||||
|
||||
This package contains the shared library.
|
||||
|
||||
%package -n libuchardet-devel
|
||||
Summary: Universal Charset Detection Library
|
||||
Group: Development/Libraries/C and C++
|
||||
Requires: libuchardet%{major} = %{version}
|
||||
|
||||
%description -n libuchardet-devel
|
||||
uchardet is a C language binding of the original C++ implementation of
|
||||
the universal charset detection library by Mozilla.
|
||||
|
||||
uchardet is an encoding detector library, which takes a sequence of
|
||||
bytes in an unknown character encoding without any additional
|
||||
information, and attempts to determine the encoding of the text.
|
||||
|
||||
This package contains the development files.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
|
||||
%build
|
||||
mkdir build
|
||||
cd build
|
||||
export CFLAGS="%{optflags}"
|
||||
export CXXFLAGS="%{optflags}"
|
||||
cmake .. \
|
||||
-DCMAKE_INSTALL_PREFIX=%{_prefix} \
|
||||
-DCMAKE_INSTALL_LIBDIR=%{_libdir}
|
||||
make %{?_smp_mflags} VERBOSE=1
|
||||
|
||||
%install
|
||||
pushd build
|
||||
%make_install
|
||||
popd
|
||||
rm -f %{buildroot}%{_libdir}/libuchardet.a
|
||||
|
||||
%post -n libuchardet%{major} -p /sbin/ldconfig
|
||||
|
||||
%postun -n libuchardet%{major} -p /sbin/ldconfig
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc AUTHORS COPYING
|
||||
%{_bindir}/%{name}
|
||||
%doc %{_mandir}/man?/*
|
||||
|
||||
%files -n libuchardet%{major}
|
||||
%defattr(-,root,root,-)
|
||||
%{_libdir}/*.so.*
|
||||
|
||||
%files -n libuchardet-devel
|
||||
%defattr(-,root,root,-)
|
||||
%doc AUTHORS COPYING
|
||||
%{_includedir}/%{name}
|
||||
%{_libdir}/*.so
|
||||
%{_libdir}/pkgconfig/*.pc
|
||||
|
||||
%changelog
|
Loading…
Reference in New Issue
Block a user