-
Notifications
You must be signed in to change notification settings - Fork 185
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update sigcpp from 2.6.2 to 3.0.7 - v2
- Loading branch information
Showing
2 changed files
with
11 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,29 @@ | ||
### RPM external sigcpp 3.0.7 | ||
Source: https://github.com/libsigcplusplus/libsigcplusplus/archive/refs/tags/%{realversion}.tar.gz | ||
|
||
BuildRequires: autotools | ||
BuildRequires: cmake | ||
|
||
%prep | ||
%setup -q -n libsigc++-%{realversion} | ||
./configure --prefix=%{i} --disable-static | ||
%setup -q -n libsigcplusplus-%{realversion} | ||
|
||
%build | ||
rm -rf ../build ; mkdir ../build ; cd ../build | ||
cmake ../libsigcplusplus-%{realversion} \ | ||
-DCMAKE_BUILD_TYPE=Release \ | ||
-DCMAKE_INSTALL_PREFIX="%{i}" | ||
make %{makeprocesses} | ||
|
||
%install | ||
cd ../build | ||
make install | ||
# We remove pkg-config files for two reasons: | ||
# * it's actually not required (macosx does not even have it). | ||
# * rpm 4.8 adds a dependency on the system /usr/bin/pkg-config | ||
# * rpm 4.8 adds a dependency on the system /usr/bin/pkg-config | ||
# on linux. | ||
# In the case at some point we build a package that can be build | ||
# only via pkg-config we have to think on how to ship our own | ||
# version. | ||
rm -rf %{i}/lib/pkgconfig | ||
# Read documentation online. | ||
%define drop_files %{i}/share | ||
cp %{i}/lib/sigc++-2.0/include/sigc++config.h %{i}/include/sigc++-2.0/ | ||
cp %{i}/lib/sigc++-3.0/include/sigc++config.h %{i}/include/sigc++-3.0/ |