From 39d8dff99cbae8e57e85ada279fe047de4a69673 Mon Sep 17 00:00:00 2001 From: Kalev Lember Date: Fri, 6 Sep 2019 11:23:02 +0200 Subject: [PATCH] Initial import --- .gitignore | 1 + README.md | 3 -- libsigc++30.spec | 78 ++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 80 insertions(+), 3 deletions(-) create mode 100644 .gitignore delete mode 100644 README.md create mode 100644 libsigc++30.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9f0e7c6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/libsigc++-3.0.0.tar.xz diff --git a/README.md b/README.md deleted file mode 100644 index eee9ce3..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# libsigc++30 - -The libsigc++30 package \ No newline at end of file diff --git a/libsigc++30.spec b/libsigc++30.spec new file mode 100644 index 0000000..63341de --- /dev/null +++ b/libsigc++30.spec @@ -0,0 +1,78 @@ +# first two digits of version +%define release_version %(echo %{version} | awk -F. '{print $1"."$2}') + +Name: libsigc++30 +Version: 3.0.0 +Release: 1%{?dist} +Summary: Typesafe signal framework for C++ + +License: LGPLv2+ +URL: https://libsigcplusplus.github.io/libsigcplusplus/ +Source0: https://download.gnome.org/sources/libsigc++/%{release_version}/libsigc++-%{version}.tar.xz + +BuildRequires: gcc-c++ +BuildRequires: m4 +BuildRequires: perl-interpreter +BuildRequires: perl(Getopt::Long) + +%description +libsigc++ implements a typesafe callback system for standard C++. It +allows you to define signals and to connect those signals to any +callback function, either global or a member function, regardless of +whether it is static or virtual. + +libsigc++ is used by gtkmm to wrap the GTK+ signal system. It does not +depend on GTK+ or gtkmm. + + +%package devel +Summary: Development tools for the typesafe signal framework for C++ +Requires: %{name}%{?_isa} = %{version}-%{release} + +%description devel +The %{name}-devel package contains the static libraries and header files +needed for development with %{name}. + + +%package doc +Summary: Documentation for %{name}, includes full API docs +BuildArch: noarch +Requires: %{name} = %{version}-%{release} + +%description doc +This package contains the full API documentation for %{name}. + + +%prep +%setup -q -n libsigc++-%{version} + + +%build +%configure +%make_build + + +%install +%make_install +find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';' + + +%files +%license COPYING +%doc AUTHORS README.md NEWS +%{_libdir}/*.so.* + +%files devel +%{_includedir}/* +%{_libdir}/sigc++-3.0/ +%{_libdir}/pkgconfig/*.pc +%{_libdir}/*.so + +%files doc +%doc %{_datadir}/doc/libsigc++-3.0/ +%doc %{_datadir}/devhelp/ + + +%changelog +* Thu Sep 05 2019 Kalev Lember - 3.0.0-1 +- Initial Fedora packaging, based on libsigc++20 diff --git a/sources b/sources new file mode 100644 index 0000000..16d618b --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (libsigc++-3.0.0.tar.xz) = 827831bd3d9aced63419e7616250ad7469db80dda101ad3b919e379e68fd54389e419093385b0fcfb695fc0f7ca954f5007bd747bf88a82090e649c2294a6d9b