Skip to content

Commit 1a65a88

Browse files
committed
remove 32bit dnf from readme, fix packaging of header files and arch names
1 parent 8451008 commit 1a65a88

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

CMakeLists.txt

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,15 @@ if (BUILD_32)
2121
set_target_properties(${PROJECT_NAME} PROPERTIES COMPILE_FLAGS "-m32" LINK_FLAGS "-m32")
2222
MESSAGE(STATUS "Excluding 64bit library paths from search.")
2323
set_property(GLOBAL PROPERTY FIND_LIBRARY_USE_LIB64_PATHS OFF)
24-
set(ARCH i686)
24+
set(ARCH_RPM i686)
25+
set(ARCH_DEB i386)
2526
elseif (BUILD_64)
2627
set_target_properties(${PROJECT_NAME} PROPERTIES COMPILE_FLAGS "-m64" LINK_FLAGS "-m64")
27-
set(ARCH amd64)
28+
set(ARCH_DEB amd64)
29+
set(ARCH_RM x86_64)
2830
else()
29-
set(ARCH amd64)
31+
set(ARCH_DEB amd64)
32+
set(ARCH_RPM x86_64)
3033
endif()
3134

3235
if (USE_MPIR)
@@ -56,7 +59,7 @@ if (WIN32)
5659
endif()
5760

5861
install(TARGETS bncsutil RUNTIME DESTINATION bin LIBRARY DESTINATION lib ARCHIVE DESTINATION lib)
59-
install(FILES src/bncsutil/bncsutil.h DESTINATION include/bncsutil)
62+
install(FILES ${HEADERS} DESTINATION include/bncsutil)
6063

6164
#CPack configurtion
6265
SET(CPACK_GENERATOR "DEB" "RPM")
@@ -73,7 +76,7 @@ SET(CPACK_PACKAGE_VERSION_PATCH "${VERSION_PATCH}")
7376
SET(CPACK_DEBIAN_PACKAGE_SECTION "libs")
7477
SET(CPACK_DEBIAN_PACKAGE_HOMEPAGE "https://github.com/BNETDocs/bncsutil")
7578
SET(CPACK_DEBIAN_PACKAGE_MAINTAINER "imbacen@gmail.com")
76-
SET(CPACK_DEBIAN_PACKAGE_ARCHITECTURE ${ARCH})
79+
SET(CPACK_DEBIAN_PACKAGE_ARCHITECTURE ${ARCH_DEB})
7780
SET(CPACK_DEBIAN_PACKAGE_DEPENDS "libgmp10")
7881

7982
#RPM configuration
@@ -82,6 +85,6 @@ SET(CPACK_RPM_PACKAGE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/COPYING")
8285
SET(CPACK_RPM_PACKAGE_GROUP "${PROJECT_NAME}")
8386
SET(CPACK_RPM_PACKAGE_URL "https://github.com/BNETDocs/bncsutil")
8487
SET(CPACK_RPM_PACKAGE_REQUIRES "gmp")
85-
SET(CPACK_RPM_PACKAGE_ARCHITECTURE ${ARCH})
88+
SET(CPACK_RPM_PACKAGE_ARCHITECTURE ${ARCH_RPM})
8689

8790
INCLUDE(CPack)

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,5 +64,4 @@ DEB and RPM repositories are maintained with best effort.
6464
2. If using dnf, make sure to import the public key: `rpm --import https://rpm.xpam.pl/rpm-pubkey.asc`
6565
3. Update and install: `yum update && yum install bncsutil` or dnf equivalent.
6666
67-
### Fedora/CentOS (i686)
68-
`sudo dnf install bncsutil.i686`
67+

0 commit comments

Comments
 (0)