Compare commits
8 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d187631e7e | ||
|
|
53d4937501 | ||
|
|
d04f623322 | ||
|
|
e3adb4f9d6 | ||
|
|
13c8516b5d | ||
|
|
6484c5e119 | ||
|
|
e6476df6bc | ||
|
|
c19880725d |
3 changed files with 60 additions and 12 deletions
4
.gitignore
vendored
4
.gitignore
vendored
|
|
@ -1 +1,5 @@
|
|||
/ustl-2.1.tar.gz
|
||||
/ustl-2.3.tar.gz
|
||||
/ustl-2.4.tar.gz
|
||||
/ustl-2.5.tar.gz
|
||||
/ustl-2.8.tar.gz
|
||||
|
|
|
|||
2
sources
2
sources
|
|
@ -1 +1 @@
|
|||
12189009af2ce5c31d72782441eca291 ustl-2.1.tar.gz
|
||||
SHA512 (ustl-2.8.tar.gz) = 323515163080d1888202d16c3bc34312c689ea212f6d33da6ee47664c6ea2e8fcb0e64bb52cbe5896875ecd68acc3575236301691e110ed226b57a5d601b6c25
|
||||
|
|
|
|||
66
ustl.spec
66
ustl.spec
|
|
@ -1,11 +1,18 @@
|
|||
Name: ustl
|
||||
Version: 2.1
|
||||
Release: 3%{?dist}
|
||||
Version: 2.8
|
||||
Release: 1%{?dist}
|
||||
Summary: A size-optimized STL implementation
|
||||
License: MIT
|
||||
URL: http://msharov.github.io/ustl/
|
||||
Source0: https://github.com/msharov/ustl/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
||||
|
||||
BuildRequires: coreutils
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: libstdc++-static
|
||||
BuildRequires: pkgconfig
|
||||
BuildRequires: make
|
||||
BuildRequires: sed
|
||||
|
||||
%description
|
||||
The C++ standard template library (STL) is a collection of common containers
|
||||
and algorithms in template form. Unfortunately its standard incarnation
|
||||
|
|
@ -39,17 +46,25 @@ developing applications that use %{name}.
|
|||
|
||||
%prep
|
||||
%setup -q
|
||||
|
||||
# No silent build.
|
||||
sed -i -e 's|\t@|\t|g' Makefile
|
||||
|
||||
# Don't strip the symbols, substituted with correct ldflags.
|
||||
sed -i -e 's|-s |%{?__global_ldflags} |g' Config.mk.in
|
||||
sed -i -e 's|/usr/lib|%{_libdir}|g' \
|
||||
-e 's|CXXFLAGS :=|override CXXFLAGS +=|g' \
|
||||
Config.mk.in
|
||||
sed -i -e 's|/usr/lib|%{_libdir}|g' \
|
||||
-i -e 's|-s |-Wl,-z,relro |g' \
|
||||
-e 's|CXXFLAGS :=|override CXXFLAGS +=|g' \
|
||||
Config.mk.in
|
||||
|
||||
# Do not interfere with optflags
|
||||
sed -i -e 's|-march=native||g' configure
|
||||
# Do not interfere with optflags, hardened build flags.
|
||||
sed -i -e 's|-march=native||g' \
|
||||
-i -e 's|-shared |-shared -Wl,-z,now |g' \
|
||||
configure
|
||||
|
||||
# Fix pkgconfig file
|
||||
sed -i '/^prefix=/d' ustl.pc.in
|
||||
sed -i -e 's|${prefix}/lib|%{_libdir}|g' ustl.pc.in
|
||||
sed -i -e 's|${prefix}/include|%{_includedir}|g' ustl.pc.in
|
||||
|
||||
%build
|
||||
./configure \
|
||||
|
|
@ -62,7 +77,7 @@ sed -i -e 's|-march=native||g' configure
|
|||
%make_build CXXFLAGS+="%{optflags}"
|
||||
|
||||
%install
|
||||
%make_install LIBDIR="%{buildroot}%{_libdir}"
|
||||
%make_install LIBDIR="%{buildroot}%{_libdir}" PKGCONFIGDIR="%{buildroot}%{_libdir}/pkgconfig"
|
||||
|
||||
chmod 755 -v %{buildroot}%{_libdir}/*
|
||||
|
||||
|
|
@ -74,16 +89,45 @@ make check
|
|||
%postun -p /sbin/ldconfig
|
||||
|
||||
%files
|
||||
%doc LICENSE
|
||||
%license LICENSE
|
||||
%doc README
|
||||
%{_libdir}/libustl.so.*
|
||||
|
||||
%files devel
|
||||
%doc README docs/
|
||||
%doc docs/*
|
||||
%{_includedir}/ustl.h
|
||||
%{_includedir}/ustl/
|
||||
%{_libdir}/libustl.so
|
||||
%{_libdir}/pkgconfig/ustl.pc
|
||||
|
||||
%changelog
|
||||
* Sun Dec 30 2018 Denis Fateyev <denis@fateyev.com> - 2.8-1
|
||||
- Update to 2.8 version
|
||||
- Dropping obsolete patches
|
||||
|
||||
* Fri Jan 06 2017 Denis Fateyev <denis@fateyev.com> - 2.5-1
|
||||
- Update to 2.5 version
|
||||
- Adding epel7 gcc compatibility patch
|
||||
|
||||
* Fri May 20 2016 Denis Fateyev <denis@fateyev.com> - 2.4-1
|
||||
- Update to 2.4 version
|
||||
- Dropping obsolete patches
|
||||
|
||||
* Mon Feb 29 2016 Denis Fateyev <denis@fateyev.com> - 2.3-2
|
||||
- Fix epel7 full relro support
|
||||
|
||||
* Mon Feb 29 2016 Denis Fateyev <denis@fateyev.com> - 2.3-1
|
||||
- Update to 2.3 version (including patches)
|
||||
|
||||
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.1-6
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
||||
|
||||
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1-5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
||||
|
||||
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
||||
|
||||
* Fri Aug 08 2014 Yaakov Selkowitz <yselkowi@redhat.com> - 2.1-3
|
||||
- Remove -march=native
|
||||
- Disable SSE on ix86 (not supported by default optflags)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue