Included spec file to build the RPM package
authorGuilherme Maciel Ferreira <guilherme.maciel.ferreira@intra2net.com>
Wed, 23 Mar 2011 09:37:31 +0000 (10:37 +0100)
committerGuilherme Maciel Ferreira <guilherme.maciel.ferreira@intra2net.com>
Wed, 23 Mar 2011 10:30:16 +0000 (11:30 +0100)
libpingcheck.spec [new file with mode: 0644]

diff --git a/libpingcheck.spec b/libpingcheck.spec
new file mode 100644 (file)
index 0000000..087f6f9
--- /dev/null
@@ -0,0 +1,49 @@
+Summary:   Pingcheck
+Name:      libpingcheck
+Version:   ##VERSION##
+Release:   1
+License:   Intranator License
+Group:     Intranator
+Vendor:    Intra2net AG
+Source:    %{name}-%{version}.tar.gz
+BuildRoot: %{_tmppath}/%{name}-%{version}
+BuildRequires: cmake
+
+
+%description
+Pingcheck
+
+
+%prep
+%setup -q
+
+
+%build
+export PKG_CONFIG_PATH=/usr/intranator/lib/pkgconfig
+
+mkdir build
+cd build
+
+export CFLAGS="$RPM_OPT_FLAGS"
+export CXXFLAGS="$RPM_OPT_FLAGS"
+cmake -DCMAKE_INSTALL_PREFIX="%{_prefix}" ../
+
+make
+
+#make check
+
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+cd build
+make DESTDIR=$RPM_BUILD_ROOT install
+
+
+%clean
+rm -fr $RPM_BUILD_ROOT
+
+
+%files
+%defattr(-,root,root)
+%{_bindir}/libpingcheck