-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpystring.spec
More file actions
106 lines (84 loc) · 3.04 KB
/
Copy pathpystring.spec
File metadata and controls
106 lines (84 loc) · 3.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
Summary: Collection of C++ functions emulating Python's string class methods
Summary(pl.UTF-8): Zbiór funkcji C++ emulujących metody pythonowej klasy string
Name: pystring
Version: 1.2.0
Release: 1
License: BSD
Group: Libraries
#Source0Download: https://github.com/imageworks/pystring/releases
Source0: https://github.com/imageworks/pystring/archive/v%{version}/%{name}-%{version}.tar.gz
# Source0-md5: 490da1fd9645e1792b5d2a86c756c28c
URL: https://github.com/imageworks/pystring
BuildRequires: libstdc++-devel >= 6:7
BuildRequires: meson >= 1.2.0
BuildRequires: ninja >= 1.5
BuildRequires: pkgconfig
BuildRequires: rpmbuild(macros) >= 2.042
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
Pystring is a collection of C++ functions which match the interface
and behavior of Python's string class methods using std::string.
Implemented in C++, it does not require or make use of a Python
interpreter. It provides convenience and familiarity for common string
operations not included in the standard C++ library. It's also useful
in environments where both C++ and Python are used.
Overlapping functionality (such as index and slice/substr) of
std::string is included to match Python interfaces.
Originally developed at Sony Pictures Imageworks.
<https://www.imageworks.com/technology/opensource/>
%description -l pl.UTF-8
Pystring to zbiór funkcji C++ o interfejsie i zachowaniu metod
pythonowej klasy string, zaimplementowanych przy użyciu std::string.
Implementacja w C++ nie wymaga ani nie używa interpretera Pythona.
Zapewnia, że częste operacje na łańcuchach, nie zawarte w standardzie
C++, są wygodne i znajome. Jest przydatna w środowiskach, gdzie
używane są jednocześnie C++ i Python.
Pokrywająca się funkcjonalność (taka jak indeks i slice/substr)
klasy std::string jest dołączona tak, aby pasowała do interfejsów
Pythona.
Kod oryginalnie powstał w Sony Pictures Imageworks
<https://www.imageworks.com/technology/opensource/>.
%package devel
Summary: Header files for pystring library
Summary(pl.UTF-8): Pliki nagłówkowe biblioteki pystring
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
Requires: libstdc++-devel >= 6:7
%description devel
Header files for pystring library.
%description devel -l pl.UTF-8
Pliki nagłówkowe biblioteki pystring.
%package static
Summary: Static pystring library
Summary(pl.UTF-8): Statyczna biblioteka pystring
Group: Development/Libraries
Requires: %{name}-devel = %{version}-%{release}
%description static
Static pystring library.
%description static -l pl.UTF-8
Statyczna biblioteka pystring.
%prep
%setup -q
%build
%meson
%meson_build
%install
rm -rf $RPM_BUILD_ROOT
%meson_install
%clean
rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(644,root,root,755)
%doc LICENSE README.md
%{_libdir}/libpystring.so.*.*.*
%ghost %{_libdir}/libpystring.so.1
%files devel
%defattr(644,root,root,755)
%{_libdir}/libpystring.so
%{_includedir}/pystring
%{_pkgconfigdir}/pystring.pc
%files static
%defattr(644,root,root,755)
%{_libdir}/libpystring.a