Fixed package metadata and description accepted/tizen/20130529.191247 submit/tizen/20130529.115412
authorAnas Nashif <anas.nashif@intel.com>
Wed, 29 May 2013 11:54:09 +0000 (07:54 -0400)
committerAnas Nashif <anas.nashif@intel.com>
Wed, 29 May 2013 11:54:09 +0000 (07:54 -0400)
CMakeLists.txt
packaging/dukgenerator.changes [new file with mode: 0644]
packaging/dukgenerator.spec

index 2c2ad84..268cba4 100644 (file)
@@ -57,8 +57,9 @@ SET(PC_LDFLAGS -l${PROJECT_NAME})
 SET(PC_REQUIRED ${pc_requires})
 CONFIGURE_FILE(${PROJECT_NAME}.pc.in ${PROJECT_NAME}.pc @ONLY)
 
-INSTALL(FILES ${PROJECT_NAME}.pc DESTINATION lib/pkgconfig)
-INSTALL(TARGETS ${PROJECT_NAME} DESTINATION lib)
+INSTALL(FILES ${PROJECT_NAME}.pc DESTINATION ${LIB_INSTALL_DIR}/pkgconfig)
+INSTALL(TARGETS ${PROJECT_NAME} DESTINATION ${LIB_INSTALL_DIR})
 INSTALL(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/inc/ DESTINATION /usr/include)
 
 ADD_DEFINITIONS(-D_bool_cryptsvc)
+ADD_DEFINITIONS("-fPIC")
diff --git a/packaging/dukgenerator.changes b/packaging/dukgenerator.changes
new file mode 100644 (file)
index 0000000..4b49061
--- /dev/null
@@ -0,0 +1,3 @@
+* Wed May 29 2013 Anas Nashif <anas.nashif@intel.com> accepted/tizen/20130520.101220@3f50ab9
+- Fixed package metadata and description
+
index b5cab3d..1b7eecd 100644 (file)
@@ -1,47 +1,43 @@
-Name:      dukgenerator
-Summary:   nothing
-Version:    1.0.0
-Release:    7
-Group:      security
-License:    Apache License, Version 2.0
-Source0:    %{name}-%{version}.tar.gz
-BuildRequires: cmake
-
-BuildRequires: pkgconfig(openssl)
-BuildRequires: pkgconfig(cryptsvc)
+Name:           dukgenerator
+Version:        1.0.0
+Release:        7
+License:        Apache-2.0
+Summary:        Device Unique Key Library
+Group:          Security/Libraries
+Source0:        %{name}-%{version}.tar.gz
+BuildRequires:  cmake
+
+BuildRequires:  pkgconfig(cryptsvc)
+BuildRequires:  pkgconfig(openssl)
 
 %description
+Device Unique Key Library.
 
 %package devel
-Summary: nothing
-Group: security
-Requires: %{name} = %{version}-%{release}
+Summary:        Device Unique Key Library
+Group:          Development/Libraries
+Requires:       %{name} = %{version}
 
 %description devel
+Device Unique Key Library (Development Files).
 
 %prep
 %setup -q
 
 %build
 MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
-cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DFULLVER=%{version} -DMAJORVER=${MAJORVER} -DDESCRIPTION=%{summary}
-make %{?jobs:-j%jobs}
+%cmake . -DFULLVER=%{version} -DMAJORVER=${MAJORVER} -DDESCRIPTION="%{summary}" -DBUILD_SHARED_LIBS:BOOL=OFF
+make %{?_smp_mflags}
 
 
 %install
-rm -rf %{buildroot}
-#%make_install
-%{__make} DESTDIR=%{?buildroot:%{buildroot}} INSTALL_ROOT=%{?buildroot:%{buildroot}} install
+make DESTDIR=%{?buildroot:%{buildroot}} INSTALL_ROOT=%{?buildroot:%{buildroot}} install
 rm -f %{?buildroot:%{buildroot}}%{_infodir}/dir
 find %{?buildroot:%{buildroot}} -regex ".*\\.la$" | xargs rm -f --
 
-mkdir -p %{buildroot}/usr/share/license
-cp LICENSE.APLv2 %{buildroot}/usr/share/license/%{name}
-
-
 %files
+%license LICENSE.APLv2
 %{_libdir}/*.a
-%{_datadir}/license/%{name}
 
 
 %files devel