From aca0d1d71fff3dcea2634092eb5aef1ac09516db Mon Sep 17 00:00:00 2001 From: Thomas Jarosch Date: Tue, 3 May 2011 10:04:15 +0200 Subject: [PATCH] Renamed project from libpingcheck to pingcheck --- CMakeLists.txt | 2 +- Readme | 2 +- libpingcheck.spec | 50 -------------------------------------------------- pingcheck.spec | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 52 insertions(+), 52 deletions(-) delete mode 100644 libpingcheck.spec create mode 100644 pingcheck.spec diff --git a/CMakeLists.txt b/CMakeLists.txt index d6d6092..594b940 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -12,7 +12,7 @@ set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}) set(CMAKE_INSTALL_PREFIX ${CMAKE_CURRENT_BINARY_DIR}) # project: definitions -project(libpingcheck) +project(pingcheck) set(VERSION 0.1) set(TARGET ${PROJECT_NAME}) diff --git a/Readme b/Readme index 3d4efbe..e0950ac 100644 --- a/Readme +++ b/Readme @@ -24,7 +24,7 @@ The host's address can be an IP or a DNS. 1.2. How to use --------------------------------------- There are many ways to invoke the application, the simplest is just type: - ./libpingcheck + ./pingcheck which uses the configuration values from the configuration file (describled in the Configuration File section). diff --git a/libpingcheck.spec b/libpingcheck.spec deleted file mode 100644 index 21a7c46..0000000 --- a/libpingcheck.spec +++ /dev/null @@ -1,50 +0,0 @@ -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 %{_smp_mflags} - -%check -#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) -%doc LICENSE -%{_bindir}/libpingcheck diff --git a/pingcheck.spec b/pingcheck.spec new file mode 100644 index 0000000..063fdc4 --- /dev/null +++ b/pingcheck.spec @@ -0,0 +1,50 @@ +Summary: Pingcheck +Name: pingcheck +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 %{_smp_mflags} + +%check +#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) +%doc LICENSE +%{_bindir}/pingcheck -- 1.7.1